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

Cannot load both instantaneous and mean data of the same variable #286

Open
rosieeaves opened this issue Nov 3, 2021 · 1 comment
Open

Comments

@rosieeaves
Copy link

I'm outputting both the mean and instantaneous data for the PsiVEL variable using the diagnostics package. When I load the data using xmitgcm there is only one PsiVEL parameter, so I assume that one of them is overwriting the other. Is it possible to load the dataset with the mean and instantaneous data as two separate parameters?

@rabernat
Copy link
Member

rabernat commented Nov 3, 2021

Thanks for this useful question. I think you are correct in your diagnosis.

Your best bet would probably be to load the two sets files as separate Xarray Datasets by specifying prefix explicitly. Then you could rename the variables in one and merge them into a single Dataset.

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

2 participants