# glofas-ewds > A small, typed Python library for GloFAS, the global river model of Copernicus, and the Copernicus fire danger indices, from the Early Warning Data Store (EWDS). It builds the requests, downloads the files, reads them on the right 0.05° cell, finds the river cell of a place, compares a discharge with the river's own history and with the official 2-, 5- and 20-year thresholds, says how far the model can be trusted on a river of that size, counts the ensemble members and the runs behind a forecast peak, and serves all of it as facts to a command line, an assistant and a page for a municipality. - Install: `pip install glofas-ewds` (extras: `ewds` to download from Copernicus, `netcdf` to read the files and the official thresholds). Python 3.12+. `import glofas_ewds` needs only numpy. - Two sources of the same GloFAS 4 numbers: the EWDS (an account, a queue of minutes, the source of record, reanalysis from 1979) and the public Open-Meteo flood API (no key, point by point, reanalysis from 1997; a third party with its own terms). `glofas-ewds init` uses Open-Meteo unless `--source ewds`. - Headline limit: GloFAS does not hold flash floods. On 41 known Italian floods the reanalysis reached its own 2-year flow in 25 of 28 floods from long rain and 4 of 13 flash floods (Senigallia, 15 September 2022: 0.4 m³/s on a cell whose 2-year flood is 33.4). - The cell matters more than anything: Open-Meteo's values belong to the cell one step east of the one it declares; the river of a town is rarely in the cell under the town. Use `open_meteo_cell`, `nearest_river`, `point_for_cell` instead of your own rounding. - `None` means not known, never "low" and never "no flood". A discharge is the mean of a day on a 5 km cell from a model: not a gauge reading. - Nothing here is an alert: the official alert is the bulletin of the civil protection. ## Docs - [Home](https://agentengineering.it/glofas-ewds/): the guide: what GloFAS is, what it sees and what it does not, a quick start with no account, running it locally with Docker, the page for a municipality, the EWDS, trust, facts for assistants, recipes, the traps, API at a glance - [Examples](https://agentengineering.it/glofas-ewds/examples/): four notebooks on real data, the demo page (Docker or uv) and facts for assistants - [Benchmark](https://agentengineering.it/glofas-ewds/benchmark/): 41 known Italian floods and whether the model holds each, and the faithfulness set that measures what check_text lets through - [For Limen](https://agentengineering.it/glofas-ewds/limen/): for the Limen application: what it can delete, what it still computes on GloFAS data, and what it lacks that the library has - [Per un ente pubblico](https://agentengineering.it/glofas-ewds/riuso/): in Italian, for a public body: the page on the site of a municipality, what it is not, how to install it, what stays with whoever publishes it - [Changelog](https://agentengineering.it/glofas-ewds/changelog/): what changed in each release - [Contributing](https://agentengineering.it/glofas-ewds/contributing/): how to contribute ## API reference - [Cells](https://agentengineering.it/glofas-ewds/api/cells/): Which GloFAS cell a point reads, and where that cell is in a file - [Rivers](https://agentengineering.it/glofas-ewds/api/rivers/): The river nearest a place, on a grid where a cell is not a river - [Trust](https://agentengineering.it/glofas-ewds/api/trust/): How far the discharge of a node can be trusted, before you look at it - [Behind a forecast](https://agentengineering.it/glofas-ewds/api/credibility/): What stands behind a forecast peak: members and runs, as facts - [Facts](https://agentengineering.it/glofas-ewds/api/facts/): The numbers an assistant, or a page, may quote: each with its source and its age - [Checking a text](https://agentengineering.it/glofas-ewds/api/text/): Is every number of a text in the facts it was written from? - [Command line](https://agentengineering.it/glofas-ewds/api/cli/): The `glofas-ewds` command - [Store](https://agentengineering.it/glofas-ewds/api/store/): Places and their rivers, kept on disk: what the facts and the UI read - [Filling the store](https://agentengineering.it/glofas-ewds/api/local/): Fill the store: find the river of a place, download its thresholds, history and forecast - [Open-Meteo](https://agentengineering.it/glofas-ewds/api/openmeteo/): The same GloFAS 4 numbers from Open-Meteo, for whoever has no EWDS account - [Requests](https://agentengineering.it/glofas-ewds/api/request/): The EWDS requests for GloFAS, built without sending them - [Downloads](https://agentengineering.it/glofas-ewds/api/download/): Download EWDS files to a folder, one month (or one run) per file - [Client](https://agentengineering.it/glofas-ewds/api/client/): An async front for the EWDS downloads, for code that runs in an event loop - [GloFAS readers](https://agentengineering.it/glofas-ewds/api/glofas/): GloFAS NetCDF files from the EWDS, read into numbers per node - [Fire danger (FWI)](https://agentengineering.it/glofas-ewds/api/fwi/): The official Copernicus Fire Weather Index from the EWDS - [Reference and ratio](https://agentengineering.it/glofas-ewds/api/reference/): A node's ordinary high flow, and how far a forecast is above it - [Ensemble](https://agentengineering.it/glofas-ewds/api/ensemble/): How likely a forecast peak is: the share of ensemble members above a threshold - [Return periods](https://agentengineering.it/glofas-ewds/api/return_period/): Return levels of a river from its own GloFAS history: the 2-, 5-, 20-year flow - [Official thresholds](https://agentengineering.it/glofas-ewds/api/thresholds/): The official GloFAS v4 flood thresholds: the 2-, 5- and 20-year flow of a cell - [Errors](https://agentengineering.it/glofas-ewds/api/errors/): The exceptions this package raises ## For agents - [Full documentation as text](https://agentengineering.it/glofas-ewds/llms-full.txt): every page above, with the API reference rendered from the docstrings - [Agent skill](https://agentengineering.it/glofas-ewds/skills/glofas-ewds/SKILL.md): how to use the library and the traps of the data, for coding agents ## Optional - [Source code](https://github.com/agent-engineering-studio/glofas-ewds): the repository - [GloFAS](https://global-flood.emergency.copernicus.eu/): the Global Flood Awareness System of Copernicus - [EWDS](https://ewds.climate.copernicus.eu/): the Early Warning Data Store