ecmwf / metview-docs

Source for Metview's documentation on readthedocs
Apache License 2.0
10 stars 3 forks source link

advection_850.grib not found #3

Closed ahmedshaaban1 closed 1 year ago

ahmedshaaban1 commented 1 year ago

All, Regarding to the example link. The data file "advection_850.grib" is not found among the data files here. Thanks

No response

iainrussell commented 1 year ago

Hello @ahmedshaaban1,

Thanks for the report. In fact, many of these files do not reside in the repo, as we did not want to make the repo too large. Instead, they reside on a separate download server. The gallery example tries to read the file from local disk, and if it is not there, it will try to download from our server.

filename = "advection_850.grib"
if mv.exist(filename):
    f = mv.read(filename)
else:
    f = mv.gallery.load_dataset(filename)

If this does not work for you, you may be running a slightly older version of metview-python (pre-1.13.0), which tried to download from a server that has since been decommissioned. But if you use a newer version, it should download the file correctly.

Best regards, Iain

ahmedshaaban1 commented 1 year ago

Dear Iain, Thanks a lot for your response. Is a direct link (HTTP or FTP) available to download the data? Thanks

iainrussell commented 1 year ago

Dear @ahmedshaaban1, Sure, this link gets you the data: https://get.ecmwf.int/repository/test-data/metview/gallery/advection_850.grib Cheers, Iain

ahmedshaaban1 commented 1 year ago

Thanks a lot.