Skip to content

Commit

Permalink
fix date_step and range for chelsa bioclim
Browse files Browse the repository at this point in the history
  • Loading branch information
tiemvanderdeure committed Oct 3, 2024
1 parent 809b3ba commit 2b382d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/chelsa/future.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ layers(::Type{<:CHELSA{<:Future{Climate}}}) = (:prec, :temp, :tmin, :tmax)
# A modified key is used in the file name, while the key is used as-is in the path
const CHELSAKEY = (prec="pr", temp="tas", tmin="tasmin", tmax="tasmax", bio="bio")

date_step(::Type{<:CHELSA{<:Future{Climate,CMIP5}}}) = Year(20)
date_range(::Type{<:CHELSA{<:Future{Climate,CMIP5}}}) = (Date(2041), Date(2080))
date_step(::Type{<:CHELSA{<:Future{Climate,CMIP6}}}) = Year(30)
date_range(::Type{<:CHELSA{<:Future{Climate,CMIP6}}}) = (Date(1981), Date(2100))
date_step(::Type{<:CHELSA{<:Future{<:Any,CMIP5}}}) = Year(20)
date_range(::Type{<:CHELSA{<:Future{<:Any,CMIP5}}}) = (Date(2041), Date(2080))
date_step(::Type{<:CHELSA{<:Future{<:Any,CMIP6}}}) = Year(30)
date_range(::Type{<:CHELSA{<:Future{<:Any,CMIP6}}}) = (Date(1981), Date(2100))

"""
getraster(T::Type{CHELSA{Future{BioClim}}}, [layer]; date) => String
Expand Down

0 comments on commit 2b382d1

Please sign in to comment.