Make a parameter definition list for a file format
Source:R/harp_params.R
file_parameter_definitions.Rd
These functions are to be used together with add_param_def and modify_param_def to add a parameter definition entry for a particular file format.
Arguments
- name
The name of the parameter in the file. In the case of grib files, this should be the grib shortName and in the case of obsoul files, should be the number used to define what the variable is. In addition, can be expressed as a character vector for grib files in order to try different shortNames until the paramatet is found. Should be a named list if a function is to be applied with the names matching the argument names in the function.
- level_type
The grib levelType. Can be a character vector in order to try different levelTypes until the variable is found in the file. The default is a named list using the in built grib_level_types to define the names for diffferent vertical coordinate systems.
- level
The level number. Set to -999 for all levels.
- suffix
The suffix to add to
name
for different vertical coordinate systems.- units
The units of the parameter in vfld / vobs files.
- name_len
The number of characters that
name
should have in the FA files. This is 16 by default and adds blank spaces to the end ofname
to make it the required length.- harp_param
The name of the parameter to be used in outputs from read functions.
- type
The type of the parmater - either "SYNOP" or "TEMP"