reshapeworldmet: Reshapes data from 'worldmet' or 'weathercan'

Description Usage Arguments Details Value Author(s) See Also

Description

Reshapes weather station data acquired using the 'worldmet' or 'weathercan' R packages into formats useful for meteoland

Usage

1
2
3
4
reshapeworldmet(hourly_data, output = "SpatialPointsMeteorology", complete = TRUE,
                verbose = TRUE)
reshapeweathercan(hourly_data, daily_data = NULL, output = "SpatialPointsMeteorology",
                  complete = TRUE, verbose = TRUE)

Arguments

hourly_data

Hourly weather data. In the case of reshapeworldmet, a tibble or data frame returned by function 'importNOAA'. In the case of reshapeweathercan, a tibble or data frame returned by function 'weather_dl' with 'interval="hour"'.

daily_data

Daily weather data (only for reshapeweathercan), a tibble or data frame returned by function 'weather_dl' with 'interval="day"'.

output

Kind of output desired. Either 'SpatialPointsTopography', 'SpatialPointsMeteorology' or 'MeteorologyInterpolationData'.

complete

A flag to indicate that missing variables should be completed using function meteocomplete

verbose

A flag to show information of the reshape process in the console output.

Details

Note that to have precipitation included in downloads from 'worldmet' you should set 'precip = TRUE' when calling function 'importNOAA'. In the case of weathercan, precipitation is only provided for daily data (i.e. setting 'interval="day"' when calling 'weather_dl'), whereas wind speed and relative humidity are only availave for hourly data (i.e., setting 'interval="hour"' when calling 'weather_dl'). Hence, in meteoland we recommend downloading both daily and hourly data and then calling function reshapeweathercan to merge the two sources.

Value

An object of the class indicated in output.

Author(s)

Miquel De Cáceres Ainsa, CTFC

See Also

meteocomplete


miquelcaceres/meteoland documentation built on May 8, 2019, 11:57 p.m.