ecmwf-api-client | Python API to access ECMWF archive | REST library
kandi X-RAY | ecmwf-api-client Summary
kandi X-RAY | ecmwf-api-client Summary
Python API to access ECMWF archive
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Execute an API request
- Cleanup resources
- Return True if the task is ready
- Make a POST request
- Make a HTTP request
- Execute a request
- Transfer file to given path
- Return a human - readable name
- Return the result
- Wait for the response
- Read the contents of a file
- Try to get the apikey values from environment variables
- Get api key and url from rcfile
- Get the values from the environment variables
- Retrieve dataset
- Read a file
- Make a GET request
ecmwf-api-client Key Features
ecmwf-api-client Examples and Code Snippets
#!/usr/bin/env python
from ecmwfapi import ECMWFDataServer
# To run this example, you need an API key
# available from https://api.ecmwf.int/v1/key/
server = ECMWFDataServer()
server.retrieve({
'origin' : "ecmf",
'levtype' : "sfc",
import logging
from ecmwfapi import ECMWFDataServer
logging.basicConfig(level=logging.INFO)
def my_logging_function(msg):
logging.info(msg)
server = ECMWFDataServer(log=my_logging_function)
Community Discussions
Trending Discussions on ecmwf-api-client
QUESTION
I am having a hard time using the ecmwf-api-client.
I have successfully installed the interface.
I have also created a ~/.ecmwfapirc file with my credentials.
I have saved the test script in a file: myMac ~ % ./test.sh
When I run the script I get the following error:
...ANSWER
Answered 2022-Feb-08 at 13:52There, I fixed it.
I came across this, and although the accepted answer seemed plausible, it didn't do the trick for me. Even though the default version of python I am using is 3.9.10, when trying to install pip from scratch I got a 'ERROR: This script does not work on Python 2.7 The minimum supported Python version is 3.7'.
While looking into this, I found this other issue, and if you read through the comments you'll soon find out that the relationship between Homebrew and Python <3 is troublesome.
So, assuming that for some reason pip was targeting Python 2.7, which is indeed installed but to my knowledge not used, I ran pip2 install ecmwf-api-client
, which gave me a deprecation warning, but did its job.
I can now connect to the API, everything seems to be working correctly.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ecmwf-api-client
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page