Code Monkey home page Code Monkey logo

Comments (2)

khintz avatar khintz commented on July 17, 2024 5

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
		}

from wind-js-server.

koiizuka avatar koiizuka commented on July 17, 2024 2

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

from wind-js-server.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.