Skip to content

esdc() returns unexpected cube silently #301

@gdkrmr

Description

@gdkrmr

This should throw an error instead of silently returning the wrong cube.

julia> c = esdc(region = "Colombia", res = "high")
1440×720×1978×42 YAXArray{Union{Missing, Float32},4} with dimensions: 
  Dim{:lon} Sampled{Float64} -179.875:0.25:179.875 ForwardOrdered Regular Points,
  Dim{:lat} Sampled{Float64} -89.875:0.25:89.875 ForwardOrdered Regular Points,
  Ti Sampled{DateTime} DateTime[1979-01-05T00:00:00, , 2021-12-31T00:00:00] ForwardOrdered Irregular Points,
  Dim{:Variable} Categorical{String} String[sensible_heat, potential_evaporation, , net_ecosystem_exchange, snow_sublimation] Unordered
units: mm d^-1
Total size: 320.87 GB

This one seems to work fine:

julia> c = esdc(region = "Colombia", res = "high", version = 2)
2760×3360×782×92 YAXArray{Union{Missing, Float32},4} with dimensions: 
  Dim{:lon} Sampled{Float64} -82.99622135:0.0083333:-60.00464665 ForwardOrdered Regular Points,
  Dim{:lat} Sampled{Float64} 13.99613735:-0.0083333:-13.995417350000002 ReverseOrdered Regular Points,
  Ti Sampled{DateTime} DateTime[2001-01-05T00:00:00, , 2017-12-31T00:00:00] ForwardOrdered Irregular Points,
  Dim{:Variable} Categorical{String} String[S_Silt, agriculture_frontier, , MODCF_monthlymean_06, burn_date] Unordered
Total size: 2.43 TB

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions