Low-level function to perform bias correction.

correction_series(obs, mod, proj = NULL, method = "unbias", isPrec=TRUE, qstep=0.01)

Arguments

obs

Observed series for the reference (historical) period.

mod

Modelled series for the reference (historical) period.

proj

Modelled series for the projected period. If missing, the reference (historical) period is corrected.

method

Correction method, either "unbias", "scaling", "quantmap"

isPrec

A flag to indicate that variable is precipitation (only relevant for quantile mapping).

qstep

Probability step for quantile mapping (see defaultCorrectionParams).

Value

Returns a vector with corrected values.

References

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.

Author

Miquel De Cáceres Ainsa, CREAF