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:

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:

  • u component of wind at 500 hPa (u500) in m/s

  • v component of wind at 500 hPa (v500) in m/s

  • temperature at 500 hPa (t500) in K

  • temperature at 850 hPa (t850) in K

  • temperature at 1000 hPa (t1000) in K

  • geopotential height at 500 hPa (z500) in m

  • geopotential height at 1000 hPa (z1000) in m

  • sea level pressure (slp) in hPa

  • specific humidity at 700 hPa (q700) in g/kg

For maximum and minimum temperature:

  • temperature at 1000 hPa (t1000) in K

  • sea level pressure (slp) in hPa

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:

For maximum and minimum temperature the output includes:

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


[Package CSTools version 5.2.0 Index]