training_analogs {CSTools} | R Documentation |
AEMET Training Training method (pre-downscaling) based on analogs: synoptic situations and significant predictors.
Description
This function caracterizes the synoptic situations in a past period based on low resolution reanalysis data (e.g, ERAInterim 1.5º x 1.5º) and an observational high resolution (HR) dataset (AEMET 5 km gridded daily precipitation and maximum and minimum temperature) (Peral et al., 2017)). The method uses three domains:
peninsular Spain and Balearic Islands domain (5 km resolution): HR domain
synoptic domain (low resolution): it should be centered over Iberian Peninsula and cover enough extension to detect as much synoptic situations as possible.
extended domain (low resolution): it is an extension of the synoptic domain. It is used for 'slp_ext' parameter (see 'slp_lon' and 'slp_lat' below).
Usage
training_analogs(
pred,
slp_ext,
lon,
lat,
slp_lon,
slp_lat,
var,
HR_path,
tdates
)
Arguments
pred |
List of matrix reanalysis data in a synoptic domain. The list has to contain reanalysis atmospheric variables (instantaneous 12h data) that must be indentify by parenthesis name. For precipitation:
For maximum and minimum temperature:
All matrix must have [time,gridpoint] dimensions. (time = number of training days, gridpoint = number of synoptic gridpoints). |
slp_ext |
Matrix with atmospheric reanalysis sea level pressure (instantaneous 12h data)(hPa). It has the same resolution as 'pred' parameter but with an extended domain. This domain contains extra degrees (most in the north and west part) compare to synoptic domain. The matrix must have [time,gridpoint] dimensions. (time = number of training days, gridpoint = number of extended gridpoints). |
lon |
Vector of the synoptic longitude (from (-180º) to 180º), The vector must go from west to east. |
lat |
Vector of the synoptic latitude. The vector must go from north to south. |
slp_lon |
Vector of the extended longitude (from (-180º) to 180º). The vector must go from west to east. |
slp_lat |
Vector of the extended latitude. The vector must go from north to south. |
var |
Variable name to downscale. There are two options: 'prec' for precipitation and 'temp' for maximum and minimum temperature. |
HR_path |
Local path of HR observational files (maestro and pcp/tmx-tmn). For precipitation and temperature can be downloaded from the following link: https://www.aemet.es/en/serviciosclimaticos/cambio_climat/datos_diarios?w=2 respetively. Maestro file (maestro_red_hr_SPAIN.txt) has gridpoint (nptos), longitude (lon), latitude (lat) and altitude (alt) in columns (vector structure). Data file (pcp/tmx/tmn_red_SPAIN_1951-201903.txt) includes 5km resolution spanish daily data (precipitation or maximum and minimum temperature from january 1951 to june 2020. See README file for more information. IMPORTANT!: HR observational period must be the same as for reanalysis variables. It is assumed that the training period is smaller than the HR original one (1951-2020), so it is needed to make a new ascii file with the new period and the same structure as original, specifying the training dates ('tdates' parameter) in the name (e.g. 'pcp_red_SPAIN_19810101-19961231.txt' for '19810101-19961231' period). |
tdates |
Training period dates in format YYYYMMDD(start)-YYYYMMDD(end) (e.g. 19810101-19961231). |
Value
A matrix list (e.g. restrain) as a result of characterize the past synoptic situations and the significant predictors needed to downscale seasonal forecast variables. For precipitation the output includes:
'um': u component of geostrophic wind in all period (numeric matrix with [time, gridpoint] dimensions).
'vm': v component of geostrophic wind in all period (numeric matrix with [time,gridpoint] dimensions).
'nger': number of synoptic situations (integer).
'gu92': u component of geostrophic wind for each synoptic situation (numeric matrix with [nger,gridpoint] dimensions).
'gv92': v component of geostrophic wind for each synoptic situation (numeric matrix with [nger, gridpoint] dimensions).
'gu52': u component of wind at 500 hPa for each synotic situation (numeric matrix with [nger, gridpoint] dimensions).
'gv52': v component of wind at 500 hPa for each synotic situation (numeric matrix with [nger, gridpoint] dimensions).
'neni': number of reference centers where predictors are calculated (integer).
'vdmin': minimum distances between each HR gridpoint and the four nearest synoptic gridpoints (numeric matrix with [nptos,4] dimensions) (nptos = number of HR gridpoints).
'vref': four nearest synoptic gridpoints to each HR gridpoint (integer matrix with [nptos, 4] dimensions).
'ccm': multiple correlation coeficients (numeric matrix with [nger, nptos] dimensions) indices:
'lab_pred': numeric labels of selected predictors (integer matrix with [nger,nptos,11,1] dimensions).
'cor_pred': partial correlation of selected predictors (numeric matrix with [nger,nptos,11,2] dimensions).
For maximum and minimum temperature the output includes:
'um': u component of geostrophic wind in all training period (numeric matrix with [time,gridpoint] dimensions).
'vm': v component of geostrophic wind in all training period (numeric matrix with [time,gridpoint] dimensions).
'insol': insolation in all training period (numeric vector with [time] dimension).
'neni': number of reference centers where predictors are calculated (integer).
'vdmin': minimum distances between each HR gridpoint and the four nearest synoptic gridpoints (numeric matrix with [nptos,4] dimensions) (nptos = number of HR gridpoints).
'vref': four nearest synoptic gridpoints to each HR gridpoint (integer matrix with [nptos,4] dimensions).
The output can directly use as argument to 'CST_AnalogsPredictors' function (e.g. resdowns <- CST_AnalogsPredictors(...,restrain)).
Author(s)
Marta Dominguez Alonso - AEMET, mdomingueza@aemet.es
Nuria Perez-Zanon - BSC, nuria.perez@bsc.es