...
| example | MARS language | current WEB-API | new CDS-API (MARS like) | new CDS-API ("beautified" - generated by ECDS) * |
|---|---|---|---|---|
| request | | | | #!/usr/bin/env python |
| API key | Direct access to MARS database needed (not publicly available) | --> cat ~/.ecmwfapirc
{
"url" : "https://api.ecmwf.int/v1",
"key" : "<personal token>",
"email" : "<personal email>"
} | --> cat $HOME/.cdsapirc url: https://ecds.ecmwf.int/api key: <personal token> | --> cat $HOME/.cdsapirc url: https://ecds.ecmwf.int/api key: <personal token> |
Alternatively the url and token can be part of the Python client definition: client = cdsapi.Client(url="https://ecds.ecmwf.int/api", | Alternatively the url and token can be part of the Python client definition: client = cdsapi.Client(url="https://ecds.ecmwf.int/api", |
...