Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/e5k/CDSAPItools
https://github.com/e5k/CDSAPItools
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/e5k/CDSAPItools
- Owner: e5k
- Created: 2022-02-18T08:21:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-03-18T10:59:26.000Z (over 2 years ago)
- Last Synced: 2024-02-12T17:07:25.188Z (8 months ago)
- Language: Python
- Size: 19.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-volcano - CDSAPItools - Python functions to download wind and atmospheric data from ERA5 formatted to work with different models (e.g., [TephraProb](https://github.com/e5k/TephraProb), [Fall3d](https://gitlab.com/fall3d-distribution)). (Codes / Miscellaneous tools)
README
# CDSAPItools
These functions are designed to download ERA5 data per month. In other words, the function will split the required duration into 1-month intervals. The idea behind this module is to prevent having to keep a Python instance running during the entire duration of the queue process. This is implemented in two steps:
1. Request the data to the server, which will queue all requests. All requests are stored in `out_path/ERA5props.csv`, but no download is made yet.
2. Manually check what requests have been completed and download those that have. Again, this updates `ERA5props.csv` so only new files are downloaded## Requirements
`CDSAPItools` require the `pandas` and `cdsapi` modules:
```bash
pip install cdsapi pandas
````
## References:### CDS background
- Homepage: https://cds.climate.copernicus.eu/#!/home
- Datasets: https://cds.climate.copernicus.eu/cdsapp#!/search?type=dataset### Method implementation:
- https://github.com/ecmwf/cdsapi/issues/2
- https://github.com/ecmwf/cdsapi/blob/master/examples/example-era5-update.py