You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
707 B
32 lines
707 B
Prototype.
|
|
- linux only (uses `/tmp/`)
|
|
|
|
Download:
|
|
- downloads either today or 2022-05-08 if today is unavailable
|
|
- crashes if most recent hour does not have files yet (it is chehcked but fallback is not implemented)
|
|
- prediction_time is hardcoded to 4
|
|
|
|
Data:
|
|
- returns data PER DOT (and in 20 seconds)
|
|
- opens the file like 10 times
|
|
- latest hour is hardcoded to 18
|
|
|
|
# Requirements
|
|
Requires `eccodes` to be installed
|
|
https://confluence.ecmwf.int/display/ECC/ecCodes+Home
|
|
```
|
|
pip install -r requirements.txt
|
|
python -m eccodes selfcheck
|
|
```
|
|
|
|
|
|
# Usage
|
|
```
|
|
uvicorn main:app --reload
|
|
```
|
|
|
|
```
|
|
curl http://127.0.0.1:8000/download/
|
|
curl 'http://127.0.0.1:8000/weather_dot/?lat=75&lon=0&prediction_time=004'
|
|
```
|