metno / esd

An R-package designed for climate and weather data analysis, empirical-statistical downscaling, and visualisation.
83 stars 30 forks source link

station.metnod #16

Closed brasmus closed 8 years ago

brasmus commented 9 years ago

Check also issue https://github.com/metno/esd/issues/11

y <- station(stid=18700,param='pon',src='metnod') [1] "Retrieving data ..." [1] "No variable found for your selection or the param identifier has not been set correctly." [1] "Please refrech your selection based on the list below" longname param source [1] "1 T2M 18700 OSLO - BLINDERN NORWAY METNOD" [1] "2 TMAX 18700 OSLO - BLINDERN NORWAY METNOD" [1] "3 TMIN 18700 OSLO - BLINDERN NORWAY METNOD" [1] "4 PRECIP 18700 OSLO - BLINDERN NORWAY METNOD"

Also include possibility to read

Code Name Unit Elemgroup DD06 Wind direction at 06 utc degrees Wind DD12 Wind direction at 12 utc degrees Wind DD18 Wind direction at 18 utc degrees Wind EE Field condition code Field condition EM State of the ground (E') code Snow FFM Average wind speed (main observations) m/s Wind FFN Minimum wind speed (main observations) m/s Wind FFX Maximum wind speed (main observations) m/s Wind FGM Average of max gusts m/s Wind FGN Lowest max gust m/s Wind FGX Highest max gust m/s Wind FXM Average of highest mean wind values (main observations) m/s Wind FXN Lowest of highest mean wind values m/s Wind FXX Highest mean wind value m/s Wind GD17 Heating degree days (base 17) degree-day Temperature MR Mixing ratio gr/kg Humidity NN04 Days of clear sky sum Clouds NN09 Days of fair weather sum Clouds NN20 Days of overcast sum Clouds NNM Average cloud cover octas Clouds NNN Minimum cloud cover octas Clouds NNX Maximum cloud cover octas Clouds OT Hours of sunshine hours Sunshine POM Average air pressure, station level hPa Air pressure PON Minimum air pressure, station level hPa Air pressure POX Maximum air pressure, station level hPa Air pressure PRM Average air pressure, sea level hPa Air pressure PRN Minimum air pressure, sea level hPa Air pressure PRX Maximum air pressure, sea level hPa Air pressure RR Precipitation mm Precipitation RRID Accumulated precipitation mm Precipitation RRTA Precipitation (18-18 utc) mm Precipitation RR_720 Precipitation 720 hours (last 30 days) mm Precipitation SA Snow depth cm Snow SAE Snow depth change cm Snow SD Snow cover code Snow SGN State of sea minimum code Waves SGX State of sea maximum code Waves SH Spesific humidity gr/kg Humidity SLAG Precipitation type code Precipitation SS_24 Snow depth cm Snow TAM Mean temperature ºC Temperature TAMRR Mean temperature (06-06 utc) ºC Temperature TAM_K Mean temperature calculated with Køppens formula ºC Temperature TAN Minimum temperature ºC Temperature TAND Air temperatur ºC Temperature TAX Maximum temperature ºC Temperature TAXD Air temperature ºC Temperature TD Dew point temperature ºC Temperature TGN Minimum grass temperature ºC Temperature TW Sea temperature ºC Temperature UUM Mean relative humidity percent Humidity UUN Minimum relative humidity percent Humidity UUX Maximum relative humidity percent Humidity VEKST Growth degree days degree-day Temperature VP Vapour pressure hPa Air pressure VSUM Heat sum degree-day Temperature

abdelkaderm commented 9 years ago

As for now, I have included only precip and temp (min and max) in the metadata. I will include the other parameters as soon as possible. Am thinking about splitting the "stationmeta" object into a list of metadata that will call specific meta data to each data source, instead of having all metadata in one data frame. What do you think? This will avoid inserting "NAs" and expanding the size of the object when the attribute is not available for . For instance, station.metnod() will load metnod.meta.rda file only. In this case, each retrieving function is linked to a specific meta data i.e. different sources are treated separately. The latter could be combined or merged together only if select.station() is called without any data source specification.