Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NOAA down link has changed, now response 404 #9

Open
shu681 opened this issue Jun 20, 2019 · 2 comments
Open

NOAA down link has changed, now response 404 #9

shu681 opened this issue Jun 20, 2019 · 2 comments

Comments

@shu681
Copy link

shu681 commented Jun 20, 2019

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

@khintz
Copy link

khintz commented Sep 18, 2020

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
		}

@koiizuka
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants