我正在研究earth.null.school
github代码,以在我的window 10系统中本地实现它。但是我正面临这个问题。
github code-我正在使用的代码。
demo-代码演示。
我有grib2json节点模块,但是window命令提示符仍然无法正常工作。我正在窗口10命令提示符下尝试以下命令。我正在使用它使用grib2json
节点库将温度文件转换为json文件。
在上面的github代码中,我正在尝试以下window cmd命令。
>>> curl "http://nomads.ncep.noaa.gov/cgi-bin/filter_gfs.pl?file=gfs.t00z.pgrb2.1p00.f000&lev_10_m_above_ground=on&var_UGRD=on&var_VGRD=on&dir=%2Fgfs.${YYYYMMDD}00" -o gfs.t00z.pgrb2.1p00.f000
>>> grib2json -d -n -o current-wind-surface-level-gfs-1.0.json gfs.t00z.pgrb2.1p00.f000
grib2json
的路径是\Desktop\earth\node_modules\grib2json
。
和代码文件位于earth
中。
C:\Users\Desktop\earth>grib2json -d -n -o current-wind-surface-level-gfs-1.0.json gfs.t00z.pgrb2.1p00.f000
'grib2json' is not recognized as an internal or external command,operable program or batch file.
我还按照注释部分的建议尝试了全局节点模块,再次没有任何反应。
C:\Users\Desktop\earth>npm i -grib2json
audited 382 packages in 3.024s
found 1 low severity vulnerability
run `npm audit fix` to fix them,or `npm audit` for details
C:\Users\Desktop\earth>grib2json -d -n -o current-wind-surface-level-gfs-1.0.json gfs.t00z.pgrb2.1p00.f000
'grib2json' is not recognized as an internal or external command,operable program or batch file.
再次发生同样的事情。
C:\Users\Carthaginian\Desktop\earth>npm install -g grib2json
+ grib2json@1.0.2
added 3 packages from 2 contributors in 2.4s
C:\Users\Carthaginian\Desktop\earth>grib2json -d -n -o current-wind-surface-level-gfs-1.0.json gfs.t00z.pgrb2.1p00.f000
'grib2json' is not recognized as an internal or external command,operable program or batch file.