weacast / weacast-grib2json

CLI to converts GRIB2 files to JSON
MIT License
40 stars 9 forks source link

grib2json command arguments for 850 mb level U/V compoents #2

Closed bryanray67 closed 6 years ago

bryanray67 commented 6 years ago

Hello, I'm trying to find the correct command arguments for grib2json. I see the example for 10 meters above ground, but I'm wanting the 850 mb level.

The --fv code should be 850 (just a guess)? the --fs code should be 100 instead of 103 (just a guess)?

My command is: grib2json --names --data --fp 2 --fs 100 --fv 850 --ouput testgrib.json gribfile.grib I do not get any errors, but the resulting json file is empty.

Any suggestions? Many thanks! Bryan

claustres commented 6 years ago

You can use panoply https://www.giss.nasa.gov/tools/panoply/ to check your grib file for the right values.

I also often use the grib filter interface http://nomads.ncep.noaa.gov/cgi-bin/filter_gfs_0p50.pl to only download the right variable then extract it simply with -d and -o arguments.

bryanray67 commented 6 years ago

Thank you for your reply. I am currently only downloading the single variable at a time, so using -d and -o should do the trick if I leave off --fs and --fv?

claustres commented 6 years ago

Yes it works for me

claustres commented 6 years ago

Does it work for you ?

bryanray67 commented 6 years ago

Hello. Yes, it did work for me. Thank you very much.