Meteo Class
Meteorological Data.
Constructor
Meteo
()
Item Index
Methods
celsius
(
Number
static
-
value
Convert Kelvin to Celsius.
Parameters:
-
value
NumberA temperature in degrees Kelvin
Returns:
Number:
degrees Celsius
getconfig
(
Object
-
parameter
-
parameters
-
groups
Get the configuration for a specific meteo parameter by going through both the parameter groups and individual parameter configurations. Return an object with all necessary properties to graph a meteo parameter / group.
Parameters:
-
parameter
String -
parameters
Array -
groups
Array
Returns:
index
(
-
date
Get the closest index for the given date.
Parameters:
-
date
Moment
Returns:
Number