An S4 class to interpolate meteorology over a landscape.

Objects from the Class

Objects can be created by calls of the form new("MeteorologyInterpolationData", ...), or by calls to the function MeteorologyInterpolationData.

Slots

dates:

Object of class "Date" describing the time period for which meteorological estimates are possible.

bbox:

Object of class "matrix" with the boundary box that sets meteorological estimation boundaries.

proj4string:

Object of class "CRS" with the projection string of station spatial coordinates.

coords:

Object of class "matrix" containing the coordinates of weather stations (each row is a point).

elevation:

A numeric vector with elevation values of weather stations (in meters).

slope:

A numeric vector with slope values of weather stations (in degrees). Needed for cross-validation only.

aspect:

A numeric vector with aspect values of weather stations (in degrees from North). Needed for cross-validation only.

MinTemperature:

Object of class "data.frame" with minimum temperature recordings (in degrees Celsius) for all weather stations (in rows) and all days (in columns).

MaxTemperature:

Object of class "data.frame" with maximum temperature recordings (in degrees Celsius) for all weather stations (in rows) and all days (in columns).

SmoothedTemperatureRange:

Object of class "matrix" with temporally smoothed temperature range recordings (in degrees Celsius) for all weather stations (in rows) and all days (in columns).

Precipitation:

Object of class "matrix" with precipitation recordings (in mm of water) for all weather stations (in rows) and all days (in columns).

SmoothedPrecipitation:

Object of class "matrix" with temporally smoothed precipitation recordings (in mm of water) for all weather stations (in rows) and all days (in columns).

RelativeHumidity:

Object of class matrix with relative humidity recordings (in percent) for all weather stations (in rows) and all days (in columns).

Radiation:

Object of class matrix with relative radiation recordings (in MJ/m2) for all weather stations (in rows) and all days (in columns). Needed for cross-validation only.

WindSpeed:

Object of class "matrix" with wind speed recordings (in m/s) for all weather stations (in rows) and all days (in columns).

WindDirection:

Object of class "matrix" with wind direction recordings (in degrees from North) for all weather stations (in rows) and all days (in columns).

WindFields:

Object of class "list". See function readWindNinjaWindFields.

WFIndex:

Object of class "matrix" with the closest windfield index for each stations in each day.

WFFactor:

Object of class "matrix" with the multiplication factor for the wind speed of each stations in each day.

params:

A "list" containing interpolation parameters.

Extends

Class "MeteorologyProcedureData", directly. Class "Spatial", by class "MeteorologyProcedureData", distance 2

Methods

subsample

signature(object = "MeteorologyInterpolationData"): Generates a MeteorologyInterpolationData object for a smaller area and a subset of dates.

Author

Miquel De Cáceres Ainsa, CREAF

Examples

#Structure of the S4 object
showClass("MeteorologyInterpolationData")
#> Class "MeteorologyInterpolationData" [package "meteoland"]
#> 
#> Slots:
#>                                                         
#> Name:                    coords                elevation
#> Class:                   matrix                  numeric
#>                                                         
#> Name:                     slope                   aspect
#> Class:                  numeric                  numeric
#>                                                         
#> Name:            MinTemperature           MaxTemperature
#> Class:                   matrix                   matrix
#>                                                         
#> Name:     SmoothedPrecipitation            Precipitation
#> Class:                   matrix                   matrix
#>                                                         
#> Name:  SmoothedTemperatureRange         RelativeHumidity
#> Class:                   matrix                   matrix
#>                                                         
#> Name:                 Radiation                WindSpeed
#> Class:                      ANY                      ANY
#>                                                         
#> Name:             WindDirection               WindFields
#> Class:                      ANY                      ANY
#>                                                         
#> Name:                   WFIndex                 WFFactor
#> Class:                      ANY                      ANY
#>                                                         
#> Name:                    params                    dates
#> Class:                     list                     Date
#>                                                         
#> Name:                      bbox              proj4string
#> Class:                   matrix                      CRS
#> 
#> Extends: 
#> Class "MeteorologyProcedureData", directly
#> Class "Spatial", by class "MeteorologyProcedureData", distance 2