Function interpolation.calibration
determines optimal interpolation
parameters 'N' and 'alpha' for a given meteorological variable. Optimization
is done by minimizing mean absolute error (MAE) (Thornton et al. 1997).
Function interpolation.cv
calculates average mean absolute errors
(MAE) for the prediction period of an object of class
'MeteorologyInterpolationData
'. Function
summary
returns a data.frame with cross-validation
summaries and plot
plots cross-validation results.
In both calibration and validation procedures, predictions for each weather
station are made using a leave-one-out procedure (i.e. after excluding the
station from the predictive set).
interpolation.calibration(
object,
stations = NULL,
variable = "Tmin",
N_seq = seq(5, 30, by = 5),
alpha_seq = seq(0.25, 10, by = 0.25),
verbose = FALSE
)interpolation.calibration.fmax(
object,
stations = NULL,
fmax_seq = seq(0.05, 0.95, by = 0.05),
verbose = FALSE
)
interpolation.cv(object, stations = NULL, verbose = FALSE)
# S3 method for interpolation.cv
plot(x, type = "stations", ...)
# S3 method for interpolation.cv
summary(object, ...)
Function interpolation.calibration
returns an object of class
'interpolation.calibration'
with the following items:
MAE
: A numeric matrix with the mean absolute error values
(averaged across stations) for each combination of parameters 'N' and
'alpha'.
minMAE
: Minimum MAE value.
N
: Value of
parameter 'N' corresponding to the minimum MAE.
alpha
: Value of
parameter 'alpha' corresponding to the minimum MAE.
Observed
: A
matrix with observed values.
Predicted
: A matrix with predicted
values for the optimum parameter combination.
Function
interpolation.cv
returns a list of class 'interpolation.cv'
with the following items:
stations
: A data frame with
as many rows as weather stations and the following columns:
MinTemperature-Bias
: Bias (in degrees), calculated over the
prediction period, of minimum temperature estimations in weather stations.
MinTemperature-MAE
: Mean absolute errors (in degrees), averaged
over the prediction period, of minimum temperature estimations in weather
stations.
MaxTemperature-Bias
: Bias (in degrees), calculated
over the prediction period, of maximum temperature estimations in weather
stations.
MaxTemperature-MAE
: Mean absolute errors (in degrees),
averaged over the prediction period, of maximum temperature estimations in
weather stations.
Precipitation-Total
: Difference in the total
precipitation of the studied period.
Precipitation-DPD
:
Difference in the proportion of days with precipitation.
Precipitation-Bias
: Bias (in mm), calculated over the days with
precipitation, of precipitation amount estimations in weather stations.
Precipitation-MAE
: Mean absolute errors (in mm), averaged over
the days with precipitation, of precipitation amount estimations in weather
stations.
RelativeHumidity-Bias
: Bias (in percent), calculated
over the prediction period, of relative humidity estimations in weather
stations.
RelativeHumidity-MAE
: Mean absolute errors (in
percent), averaged over the prediction period, of relative humidity
estimations in weather stations.
Radiation-Bias
: Bias (in
MJ/m2), calculated over the prediction period, of incoming radiation
estimations in weather stations.
Radiation-MAE
: Mean absolute
errors (in MJ/m2), averaged over the prediction period, of incoming
radiation estimations in weather stations.
dates
: A data frame with as many rows as weather stations and
the following columns:
MinTemperature-Bias
: Daily bias
(in degrees), averaged over the stations, of minimum temperature
estimations.
MinTemperature-MAE
: Daily mean absolute error (in
degrees), averaged over the stations, of minimum temperature estimations.
MaxTemperature-Bias
: Daily bias (in degrees), averaged over the
stations, of maximum temperature estimations.
MaxTemperature-MAE
: Daily mean absolute error (in degrees),
averaged over the stations, of maximum temperature estimations.
Precipitation-Bias
: Daily bias (in mm), averaged over the
stations, of precipitation amount estimations.
Precipitation-MAE
: Daily mean absolute error (in mm), averaged
over the stations, of precipitation amount estimations.
RelativeHumidity-Bias
: Daily bias (in percent), averaged over
the stations, of relative humidity estimations.
RelativeHumidity-MAE
: Daily mean absolute error (in percent),
averaged over the stations, of relative humidity estimations.
Radiation-Bias
: Daily bias (in MJ/m2), averaged over the
stations, of incoming radiation estimations.
Radiation-MAE
:
Daily mean absolute errors (in MJ/m2), averaged over the stations, of
incoming radiation estimations.
MinTemperature
: A data frame with predicted minimum temperature
values.
MinTemperatureError
: A matrix with predicted minimum
temperature errors.
MaxTemperature
: A data frame with predicted
maximum temperature values.
MaxTemperatureError
: A matrix with
predicted maximum temperature errors.
Precipitation
: A data
frame with predicted precipitation values.
PrecipitationError
: A
matrix with predicted precipitation errors.
RelativeHumidity
: A
data frame with predicted relative humidity values.
RelativeHumidityError
: A matrix with predicted relative humidity
errors.
Radiation
: A data frame with predicted radiation values.
RadiationError
: A matrix with predicted radiation errors.
In the case of function interpolation.cv
, an object of
class MeteorologyInterpolationData-class
. In the case of
function summary
, an object of class interpolation.cv
A numeric vector containing the indices of stations to be used to calculate mean absolute errors (MAE) in the calibration or cross-validation analysis. All the stations with data are included in the training set but predictive MAE are calculated for the 'stations' subset only.
A string indicating the meteorological variable for which interpolation parameters 'N' and 'alpha' will be calibrated. Accepted values are 'Tmin' (for minimum temperature), 'Tmax' (for maximum temperature), 'Tdew' (for dew-point temperature), 'PrecEvent' (for precipitation events),'PrecAmount' (for regression of precipitation amounts),'Prec' (for precipitation with the same values for precipitation events and regression of precipitation amounts).
Set of average number of points to be tested.
Set of alpha values to be tested.
A logical flag to generate additional console output.
Set of f_max values to be tested.
A S3 object of class interpolation.cv
with cross-validation
results.
A string of the plot type to be produced (either "stations" or "dates").
Additional parameters passed to summary and plot functions.
Miquel De Cáceres Ainsa, CREAF
Thornton, P.E., Running, S.W., 1999. An improved algorithm for estimating incident daily solar radiation from measurements of temperature, humidity, and precipitation. Agric. For. Meteorol. 93, 211–228. doi:10.1016/S0168-1923(98)00126-9.
De Caceres M, Martin-StPaul N, Turco M, Cabon A, Granda V (2018) Estimating daily meteorological data and downscaling climate models over landscapes. Environmental Modelling and Software 108: 186-196.
MeteorologyInterpolationData