Skip to content

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.

Setup

julia
using ERA5Reanalysis

The ERA5Variable Type

Missing docstring.

Missing docstring for ERA5Variable. Check Documenter's build log for details.

SingleLevel and PressureLevel Variables

There are two main ERA5Variable types in ERA5 reanalysis:

  • SingleLevel variables - such as surface temperature, or total cloud cover, provided in the (lon, lat) space

  • PressureLevel variables - such as atmospheric temperature, or specific humidity, provided in the (lon, lat, pressure) space

SuperTypeCDS VariableCustom Variable
SingleLevelSingleVariableSingleCustom
PressureLevelPressureVariablePressureCustom
ERA5Reanalysis.SingleLevel Type
julia
SingleLevel <: ERA5Variable

Abstract supertype for Single-Level variables, with the following subtypes:

julia
SingleVariable <: SingleLevel
SingleCustom   <: SingleLevel
source
ERA5Reanalysis.PressureLevel Type
julia
PressureLevel <: ERA5Variable

Abstract supertype for Single-Level variables, with the following subtypes:

julia
PressureVariable <: PressureLevel
PressureCustom   <: PressureLevel
source

Custom ERA5Variables

Each of these supertypes are further broken down into XXVariable and XXCustom subtypes:

  • XXVariable represents a variable that is available directly from CDS

  • XXCustom variables are user-defined variables

Warning

XXCustom variables cannot be downloaded - trying to do so will result in a method error - and can only be calculated from existing variable data.

ERA5Reanalysis.SingleVariable Type
julia
SingleVariable <: SingleLevel

Subtype for Single-Level variables that can be directly retrieved from the Climate Data Store.

source
ERA5Reanalysis.SingleCustom Type
julia
SingleCustom <: SingleLevel

Subtype for custom user-defined Single-Level variables, which can only be calculated and not downloaded from the Climate Data Store.

source
ERA5Reanalysis.PressureVariable Type
julia
PressureVariable <: PressureLevel

Subtype for Pressure-Level variables that can be directly retrieved from the Climate Data Store.

source
ERA5Reanalysis.PressureCustom Type
julia
PressureCustom <: PressureLevel

Subtype for custom user-defined Pressure-Level variables which can only be calculated and not downloaded from the Climate Data Store.

source