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

coordinates lost after destagger #1

Open
cosunae opened this issue Apr 18, 2024 · 2 comments
Open

coordinates lost after destagger #1

cosunae opened this issue Apr 18, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@cosunae
Copy link
Collaborator

cosunae commented Apr 18, 2024

  • Icon Data Processing Incubator version:
  • Python version:
  • Operating System:

Description

I have a data array, var, with the following coordinates:

  * time        (time) int64 8B 0
  * z           (z) int64 480B 1 2 3 4 5 6 7 8 9 ... 52 53 54 55 56 57 58 59 60
    lat         (y, x) float64 2MB 42.18 42.18 42.18 42.19 ... 50.13 50.13 50.13
    lon         (y, x) float64 2MB 0.8064 0.8331 0.8598 ... 17.43 17.46 17.49
    valid_time  (time) datetime64[ns] 8B 2016-03-14T20:00:00
    ref_time    datetime64[ns] 8B 2016-03-14T20:00:00

After applying destagger(var, "x"), many coordinates are lost.

Coordinates:
  * time     (time) int64 8B 0
  * z        (z) int64 480B 1 2 3 4 5 6 7 8 9 10 ... 52 53 54 55 56 57 58 59 60

Shouldnt we retain whatever coordinates the input array brings ?

@cosunae cosunae added the bug Something isn't working label Apr 18, 2024
@cosunae
Copy link
Collaborator Author

cosunae commented Apr 18, 2024

except for lon,lat which should be computed accordingly to the destagger operation

@cosunae
Copy link
Collaborator Author

cosunae commented Apr 19, 2024

I think we could formalize the metadata model and have a function that imposes it.
We then can run the function that checks all the required coordinates are present and run it on every test.

@victoria-cherkas victoria-cherkas transferred this issue from MeteoSwiss-APN/icon_data_processing_incubator Apr 22, 2024
@victoria-cherkas victoria-cherkas transferred this issue from another repository Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant