ERA5Dataset Examples

Here, we list some basic examples for the creation of ERA5Dataset

Specifying an hourly dataset:

julia> using ERA5Reanalysis
julia> ERA5Hourly(start=Date(2017,1,2),stop=Date(2018,5,1))[ Info: 2025-11-29T00:49:18.666 - ERA5Reanalysis.jl - Setting up data structure containing information on the ERA5 Hourly data to be downloaded The ERA5Hourly Module has the following properties: Dataset ID (ID) : era5hr Date Begin (start) : 2017-01-01 Date End (stop) : 2018-05-31 Data Directory (path) : /home/runner/era5hr Mask Directory (emask) : /home/runner/emask

Note that the resultant ERA5Hourly dataset processes data by whole-months. It is not possible to specify specific days in which to download data.

Specifying a monthly dataset with custom home directory:

julia> using ERA5Reanalysis
julia> ERA5Monthly(start=Date(2017,1,2),stop=Date(2018,5,1),path=pwd())[ Info: 2025-11-29T00:49:20.309 - ERA5Reanalysis.jl - Setting up data structure containing information on the ERA5 Monthly data to be downloaded The ERA5Monthly Module has the following properties: Dataset ID (ID) : era5mo Date Begin (start) : 2017-01-01 Date End (stop) : 2018-12-31 Data Directory (path) : /home/runner/work/ERA5Reanalysis.jl/ERA5Reanalysis.jl/docs/build/components/datasets/era5mo Mask Directory (emask) : /home/runner/work/ERA5Reanalysis.jl/ERA5Reanalysis.jl/docs/build/components/datasets/emask Hour-of-Day? (hours) : false

Note that the resultant ERA5Monthly dataset processes data by years. It is not possible to specify specific months in which to download data. The same holds true for the ERA5MonthlyHour dataset.

Specifying a monthly-hour dataset:

julia> using ERA5Reanalysis
julia> ERA5Monthly(start=Date(2017,1,2),stop=Date(2018,5,1),hours=[0,3,6,9,12,15,18,21])ERROR: TypeError: non-boolean (Vector{Int64}) used in boolean context