Variable Types in ERA5Reanalysis.jl
In order to download data from the Climate Data Store, we need to specify at least a variable to download. This variable can be one found directly from CDS, or it can be a custom user-defined variable (in which case it has to be calculated by the user). Information regarding this variable will be loaded into an ERA5Variable
.
ERA5Reanalysis.ERA5Variable
— TypeERA5Variable
Abstract supertype for ERA5 variables.
All ERA5Variable
Types contain the following fields:
varID
: The variable ID, that is also the identifier in the NetCDF fileslname
: The variable long-name, which is used to specify retrievals from CDSvname
: The full-name of the variableunits
: The units of the variable
SingleLevel
and PressureLevel
variables
There are two main ERA5Variable
types in ERA5 reanalysis:
SingleLevel
variables, such as surface temperature, or total cloud cover, that are provided in the (lon,lat) spacePressureLevel
variables, such as atmospheric temperature, or specific humidity, that are provided in the (lon,lat,pressure) space
ERA5Reanalysis.SingleLevel
— TypeSingleLevel <: ERA5Variable
Abstract supertype for Single-Level variables. Contains the following fields:
varID
: The variable ID, that is also the identifier in the NetCDF fileslname
: The variable long-name, which is used to specify retrievals from CDSvname
: The full-name of the variableunits
: The units of the variabledname
: The name of the ERA5 dataset containing the variable
ERA5Reanalysis.PressureLevel
— TypePressureLevel <: ERA5Variable
Abstract supertype for Pressure-Level variables. Contains the following fields:
varID
: The variable ID, that is also the identifier in the NetCDF fileslname
: The variable long-name, which is used to specify retrievals from CDSvname
: The full-name of the variableunits
: The units of the variablehPa
: The pressure-level height of the variable in concerndname
: The name of the ERA5 dataset containing the variable
Custom ERA5Variable
s
Each of these supertypes are further broken down into XXVariable
and XXCustom
subtypes, where XXVariable
represents a variable that is available directly from CDS, and XXCustom
variables are user-defined variables. XXCustom
variables therefore cannot be downloaded - trying to do so will result in a method
error - and can only be calculated from existing variable data.
ERA5Reanalysis.SingleVariable
— TypeSingleVariable <: SingleLevel
Subtype for Single-Level variables that can be directly retrieved from the CDS
ERA5Reanalysis.SingleCustom
— TypeSingleCustom <: SingleLevel
Subtype for custom user-defined Single-Level variables
ERA5Reanalysis.PressureVariable
— TypePressureVariable <: PressureLevel
Subtype for Pressure-Level variables that can be directly retrieved from the CDS
ERA5Reanalysis.PressureCustom
— TypePressureCustom <: PressureLevel
Subtype for custom user-defined Pressure-Level variables