wind-js-server
wind-js-server copied to clipboard
NOAA down link has changed, now response 404
https://nomads.ncep.noaa.gov/cgi-bin/filter_gfs_1p00.pl?dir=/gfs.2019062000
changed to
https://nomads.ncep.noaa.gov/cgi-bin/filter_gfs_1p00.pl?dir=/gfs.20190620/00
In app.js you can make a small modification to take that change into account like this:
var stamp = moment(targetMoment).format('YYYYMMDD') + roundHours(moment(targetMoment).hour(), 6); var urlstamp = stamp.slice(0,8)+'/'+stamp.slice(8,10)
request.get({
url: baseDir,
qs: {
file: 'gfs.t'+ roundHours(moment(targetMoment).hour(), 6) +'z.pgrb2.1p00.f000',
lev_10_m_above_ground: 'on',
lev_surface: 'on',
var_TMP: 'on',
var_UGRD: 'on',
var_VGRD: 'on',
leftlon: 0,
rightlon: 360,
toplat: 90,
bottomlat: -90,
dir: '/gfs.'+urlstamp
}
In addition, /atmos
have been added to the path, so it needs to be changed as follows.
var urlstamp = stamp.slice(0,8)+'/'+stamp.slice(8,10)+'/atmos';