grads
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -70,3 +70,3 @@ // | ||
// Read in ranges for Latitude, Longitude, and Altitude | ||
if ( typeof lat === 'number' ) { | ||
if ( typeof lat === 'number' || ( typeof lat === 'string' && lat.indexOf(':') === -1 ) ) { | ||
// Singular number passed | ||
@@ -100,3 +100,3 @@ lat = [ lat ]; | ||
if ( typeof lon === 'number' ) { | ||
if ( typeof lon === 'number' || ( typeof lon === 'string' && lon.indexOf(':') === -1 ) ) { | ||
// Singular number passed | ||
@@ -134,3 +134,3 @@ lon = [ lon ]; | ||
if ( typeof alt === 'number' ) { | ||
if ( typeof alt === 'number' || ( typeof alt === 'string' && alt.indexOf(':') === -1 ) ) { | ||
// Singular number passed | ||
@@ -183,3 +183,3 @@ alt = [ alt ]; | ||
( !momentUsed && ( !moment(time[0]).isValid() || !moment(time[1]).isValid() ) ) ) { | ||
throw new Error('Invalid Altitude value was set'); | ||
throw new Error('Invalid Time value was set'); | ||
} | ||
@@ -186,0 +186,0 @@ |
{ | ||
"name": "grads", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Javascript-based GrADS (Grid Analysis and Display System) Data Server client. Primarily an API for accessing weather forecast/climate data for a location or area. Currently, acccesses a few GFS variables but working to include the majority of human-usable variables (do you care about surface flux or gravity wave stuff? I don't!)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
63937