wind-js-server icon indicating copy to clipboard operation
wind-js-server copied to clipboard

NOAA down link has changed, now response 404

Open shu681 opened this issue 5 years ago • 2 comments

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

shu681 avatar Jun 20 '19 11:06 shu681

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
		}

khintz avatar Sep 18 '20 11:09 khintz

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';

koiizuka avatar Jun 26 '21 04:06 koiizuka