ecmwf / ecmwf-opendata

A package to download ECMWF open data
Apache License 2.0
160 stars 27 forks source link

Requesting "aifs" version appears to download the "ifs" version using ECMWF-OPENDATA 0.3.8 #49

Open theweatherguy opened 4 weeks ago

theweatherguy commented 4 weeks ago

Not a new issue with 0.3.8, but it seems that requesting the "aifs" version downloads a version of the ECMWF that appears to be the same as the "ifs" version of the model. Here's a sample of the request I'm using:

from ecmwf.opendata import Client
time.sleep(1)
client = Client(
    source="ecmwf",
    model="aifs",
    resol="0p25",
    preserve_request_order=False,
    infer_stream_keyword=False,
)

from ecmwf.opendata import Client

client = Client(source="ecmwf")

request = {
    "date": 20240602,
    "time": 6,
    "step": [66,72,78,84,90],
    "param": ["r", "t"],
    "levelist": [925, 850, 700, 500,]
}

client.retrieve(request, "upper4.grib2")

Am I making the request correctly or is there an issue with the python script not properly requesting the aifs version? (I've tried numerous different levels and parameters, all with a resulting download grib2 file that is indistinguishable from the "ifs" version.
I've also tried-

infer_stream_keyword=True, )

Any help would be appreciated. Thank you.