> 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/portugues/nocoes-basicas-de-modelagem/recorders/flow-duration-curve-recorders/flow-duration-curve-deviation-recorder.md).

# Registrador de desvio da curva de duração do fluxo

## Descrição geral

Esse gravador calcula uma curva de duração do fluxo (FDC) para cada cenário e, em seguida, calcula seu desvio dos FDCs alvo superior e inferior. A 2ª dimensão da lista de curvas de duração e percentis alvo deve ter o mesmo comprimento e a mesma ordem (valores altos para baixos ou valores baixos para altos).

O desvio é calculado como positivo se o FDC real estiver acima da meta superior ou abaixo da meta inferior. Se o FDC real ficar entre os alvos superior e inferior, o desvio zero será retornado. [API Referência](https://pywr.github.io/pywr-docs/master/api/generated/pywr.recorders.FlowDurationCurveDeviationRecorder.html)

## Atributos

\_agg\_func

<table><thead><tr><th width="158">Nome</th><th width="473">Descrição</th><th>Obrigatório</th><th></th></tr></thead><tbody><tr><td>modelo</td><td>pywr.core.model</td><td>sim</td><td></td></tr><tr><td>nó</td><td>O nó a ser gravado</td><td>sim</td><td></td></tr><tr><td>percentis</td><td>Os percentis a serem usados no cálculo da curva de duração do fluxo. Os valores devem estar no intervalo 0-100</td><td>sim</td><td></td></tr><tr><td>abaixar_meta_fdc</td><td>O FDC mais baixo com o qual os FDCs do cenário são comparados</td><td>sim</td><td></td></tr><tr><td>de cima_meta_fdc</td><td>O FDC superior com o qual os FDCs do cenário são comparados</td><td>sim</td><td></td></tr><tr><td>engasgo_func</td><td>Função usada para agregar os desvios do FDC em percentis.</td><td></td><td></td></tr><tr><td>As funções de estilo Numpy que suportam um argumento de eixo são suportadas</td><td>Sim fdc</td><td>Função diferente opcional para agregar vários cenários</td><td>sim</td></tr></tbody></table>

## Exemplo

em breve...

```json
{

}
```


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://water-strategy.gitbook.io/waterstrategy/portugues/nocoes-basicas-de-modelagem/recorders/flow-duration-curve-recorders/flow-duration-curve-deviation-recorder.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
