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

Fix reading NetCDF files with incorrect dimensions #35

Merged
merged 2 commits into from
Jun 27, 2024
Merged

Fix reading NetCDF files with incorrect dimensions #35

merged 2 commits into from
Jun 27, 2024

Conversation

Sbozzolo
Copy link
Member

@Sbozzolo Sbozzolo commented Jun 27, 2024

As in

Dataset: user_io/leaderboard/pr_30d_average.nc
Group: /

Dimensions
   lon = 180
   lat = 90
   time = 54

  pr   (54 × 180 × 90)
    Datatype:    Union{Missing, Float32} (Float32)
    Dimensions:  time × lon × lat

Now we read the dimensions directly from the variable.

Sbozzolo added 2 commits June 26, 2024 17:32
Now, to ensure that we have the correct order, we read the dimension directly
from the var.
@Sbozzolo Sbozzolo merged commit 1bd4d15 into main Jun 27, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

1 participant