Esri / wind-js

An demo animation of wind on a Canvas layer in the JSAPI
MIT License
735 stars 214 forks source link

updated links and urls #39

Open grantiago opened 1 year ago

grantiago commented 1 year ago

Awesome project. Thank you for sharing this. It took me so long to get this and grib2json working I'm out of time for making a pull request. I spent hours finding and filtering the gfs data. Hopefully my notes below will help others.

The NOMADS link for retrieving the data is dead. updated -> https://nomads.ncep.noaa.gov/cgi-bin/filter_gfs_1p00.pl Drill down and filter to match the project. The nomads grib filters for this project you need

850_mb
&var_UGRD=on
&var_VGRD=on

The final URL I used looked like this: curl "https://nomads.ncep.noaa.gov/cgi-bin/filter_gfs_1p00.pl?file=gfs.t00z.pgrb2.1p00.f000&lev_850_mb=on&var_UGRD=on&var_VGRD=on&dir=%2Fgfs.20230211%2F00%2Fatmos" -o gfs.t00z.pgrb2.1p00.f000

In the resources it would be better to reference grib2json and not Earth. Earth is as complex as the Earth itself, and while beautiful, it is not used here. grib2json is correct.

The install instructions on grib2json are brief. If you are having problems, in the grib2json issues look for the issue by Edison91 Those instructions had to be modified slightly for my env. linux vs. windows.

The final grib2json cmd I used: grib2json --names --data --output ../gfs_4_20230211_0000_000.json ../gfs.t00z.pgrb2.1p00.f000

Of course change the date or file name and path to your purposes.

I don't remember where I saw this comment. It was of great use matching my grib results to the json required by this project. grib2json -n -o ../fieldsAndValues.json ../gfs.t00z.pgrb2.1p00.f000 I could see what was in my grib file and filter it down to match the json needed here.

Hope the above is accurate and helpful. Thank You.