pygrib icon indicating copy to clipboard operation
pygrib copied to clipboard

Can not open Grib files from Nomands

Open thomashrabe opened this issue 4 years ago • 2 comments

I am trying to read in a file from https://nomads.ncep.noaa.gov

I can read all multigrid files like here

but my script fails to read files from other links that are supposed to be Grib files such as files from here and fails with the error below

Exception has occurred: exceptions.ValueError
no matches found
  File "/buio/buio/pygrib.pyx", line 610, in pygrib.open.select

or from here

I use the second python script here to read the files. I guess the format must be different?

thomashrabe avatar Nov 13 '20 22:11 thomashrabe

The script you reference uses netcdf4-python to read the nomads dataset, not pygrib. pygrib is for reading grib files on a local disk - if you want to read remote opendap datasets use netcdf4-python.

jswhit avatar Nov 16 '20 21:11 jswhit

Thanks for the comment @jswhit , there are two scripts and I refer to the second. Also, I have the files stored locally... Any idea why it fails reading?

thomashrabe avatar Nov 16 '20 21:11 thomashrabe