> For the complete documentation index, see [llms.txt](https://water-strategy.gitbook.io/waterstrategy/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://water-strategy.gitbook.io/waterstrategy/espanol/conceptos-basicos-de-modelado/recorders/statistical-recorders/aggregated-recorder.md).

# Grabador agregado

## Descripción general

Esta grabadora se usa para agregar varios otros objetos de la grabadora.

La clase proporciona un método para producir un grabador agregado complejo tomando los resultados de otros registros. El *.valores ()* El método primero recopila valores no agregados de los registradores proporcionados. Luego, estos se agregan por escenario y estas clases los devuelven *.valores ()* método. Este método permite *Grabador agregado* para usarse como grabadora en otros *Grabador agregado* instancias.

Por defecto, lo mismo *agg\_func* la función se usa para ambos pasos, pero es opcional *grabadora\_agg\_func* puede realizar una agregación diferente en todos los escenarios. Por ejemplo, sumar los registradores por escenario y, a continuación, calcular la media de la suma de los totales.[ ](https://pywr.github.io/pywr-docs/master/api/generated/pywr.recorders.NumpyArrayNodeCurtailmentRatioRecorder.html)[API Referencia](https://pywr.github.io/pywr-docs/master/api/generated/pywr.recorders.AggregatedRecorder.html#pywr.recorders.AggregatedRecorder)

## Atributos

*func Función de*

<table><thead><tr><th width="155">Nombre</th><th width="395">Descripción</th><th>Necesario</th></tr></thead><tbody><tr><td>modelo</td><td>Pywr.Core.Model</td><td>Opcional</td></tr><tr><td>grabadoras</td><td>La otra <em>Grabadora</em> instancias sobre las que realizar la agregación</td><td>Opcional</td></tr><tr><td>agg_</td><td>agregación de escenarios para usar cuando se agregan_valor se llama (default=» mean»)</td><td>Opcional</td></tr><tr><td>grabadora_agg_func</td><td>Función de agregación de grabadoras para usar cuando <em>agregado_el valor</em> se llama (default=`agg_función`)</td><td>Opcional</td></tr></tbody></table>

*Ejemplopróximamente...*{}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://water-strategy.gitbook.io/waterstrategy/espanol/conceptos-basicos-de-modelado/recorders/statistical-recorders/aggregated-recorder.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
