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

Handle the conversion of data variables to coordinate variables better #26

Open
mattjbr123 opened this issue Oct 25, 2024 · 1 comment

Comments

@mattjbr123
Copy link
Collaborator

mattjbr123 commented Oct 25, 2024

As part of the conversion pipeline we have to convert the coordinates that are stored as data variables to coordinate variables. See here and here for why.

At the moment we have hard-coded the variables in to the pipeline as we are only considering one dataset.

For the general case we should aim to automatically detect these variables

I am sure it is possible using xarray. Just need to dig around in the API somewhere to find a function like 'is_coord_var' or 'is_data_var'.

@mattjbr123
Copy link
Collaborator Author

mattjbr123 commented Oct 25, 2024

This does also raise the question of what other things we'll need to automatically detect or have the user specify in order to generate a sensible recipe for each given dataset, but that's a bigger question...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant