ERA5Dataset Examples

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

Specifying an hourly dataset:

julia> using ERA5Reanalysis
julia> ERA5Hourly(dtbeg=Date(2017,1,2),dtend=Date(2018,5,1))ERROR: MethodError: no method matching ERA5Hourly(::Type{String}, ::Type{Date}; dtbeg=Date("2017-01-02"), dtend=Date("2018-05-01")) Closest candidates are: ERA5Hourly(::Any, ::Any; start, stop, path) at ~/.julia/packages/ERA5Reanalysis/o6ANm/src/dataset/dataset.jl:71 got unsupported keyword arguments "dtbeg", "dtend" ERA5Hourly(::Any) at ~/.julia/packages/ERA5Reanalysis/o6ANm/src/dataset/dataset.jl:71 got unsupported keyword arguments "dtbeg", "dtend"

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(dtbeg=Date(2017,1,2),dtend=Date(2018,5,1),eroot=pwd())ERROR: MethodError: no method matching ERA5Monthly(::Type{String}, ::Type{Date}; dtbeg=Date("2017-01-02"), dtend=Date("2018-05-01"), eroot="/juliateam/.julia/packages/ERA5Reanalysis/o6ANm/docs/build/modules") Closest candidates are: ERA5Monthly(::Any, ::Any; start, stop, path, hours) at ~/.julia/packages/ERA5Reanalysis/o6ANm/src/dataset/dataset.jl:163 got unsupported keyword arguments "dtbeg", "dtend", "eroot" ERA5Monthly(::Any) at ~/.julia/packages/ERA5Reanalysis/o6ANm/src/dataset/dataset.jl:163 got unsupported keyword arguments "dtbeg", "dtend", "eroot"

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(dtbeg=Date(2017,1,2),dtend=Date(2018,5,1),hours=[0,3,6,9,12,15,18,21])ERROR: TypeError: non-boolean (Vector{Int64}) used in boolean context