Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esdc() returns unexpected cube silently #301

Open
gdkrmr opened this issue Sep 26, 2023 · 0 comments
Open

esdc() returns unexpected cube silently #301

gdkrmr opened this issue Sep 26, 2023 · 0 comments

Comments

@gdkrmr
Copy link
Collaborator

gdkrmr commented Sep 26, 2023

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
@gdkrmr gdkrmr changed the title esdc should throw errors esdc() should throw errors Sep 26, 2023
@gdkrmr gdkrmr mentioned this issue Sep 26, 2023
@gdkrmr gdkrmr changed the title esdc() should throw errors esdc() returns unexpected cube silently Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant