Vertical interpolation and re-mapping (vertical_interpolation / std)

Yaml arguments

The following arguments are used to configure the plugin. pyCIF will return an exception at the initialization if mandatory arguments are not specified, or if any argument does not fit accepted values or type:

Mandatory arguments

method: (mandatory)

Method used for the interpolation

accepted values:

  • static-levels: {‘doc’: ‘Determine levels from pre-determined levels as specified in the argument file_statlev’}

  • linear: {‘doc’: ‘Linear interpolation. Use the coordinate specified in coord_out’}

  • closest: {‘doc’: ‘Get closest levels’}

Optional arguments

coord_in: (optional): pres

Coordinates for inputs, pres, height

accepted type: <class ‘str’>

file_statlev: (optional):

File with model levels in which stations are. The expected format is:

#STAT LAT     LON     LEV  alt(m)
ALT   82.45   -62.52  1        210
JFJ   46.548  7.987   10       3580
MHD   53.33   -9.9    1        8

The first line is ignored. The important informations are the first columns with the station ID (should be consistent with the station name in your monitor file, and the fourth column specifying the level in the model (in python index starting from 0)

accepted type: <class ‘str’>

ignore_level: (optional): False

Don’t do any vertical interpolation for sparse data and just propagate levels from inputs and outputs

accepted type: <class ‘bool’>

coord_out: (optional): pres

Coordinates for outputs

accepted type: <class ‘str’>

psurf: (optional): 1013.25

Standard surfce pressure to use in computations with alpha/beta coordinate

accepted type: <class ‘float’>

fill_nans: (optional): False

Use in combination with method = linear. Fill values outside the convex hull of inputs by using the closest valid (above or below) value

accepted type: <class ‘bool’>

target_top: (optional): False

Interpolate to the top of a domain

accepted type: <class ‘bool’>

Yaml template

Please find below a template for a Yaml configuration:

 2  plugin:
 3    name: vertical_interpolation
 4    version: std
 5    type: transform
 7  # Mandatory arguments
 8  method: XXXXX
10  # Optional arguments
11  coord_in: XXXXX
12  file_statlev: XXXXX
13  ignore_level: XXXXX
14  coord_out: XXXXX
15  psurf: XXXXX
16  fill_nans: XXXXX
17  target_top: XXXXX