-
Notifications
You must be signed in to change notification settings - Fork 68
Read pickup MDS #351
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
base: master
Are you sure you want to change the base?
Read pickup MDS #351
Conversation
Single llc face
@IvanaEscobar Do you think it's possible to add a test for this new functionality? |
Great idea, I'll add it by tomorrow |
tomorrow means today! 😥 Added contents from This test avoids having to load a static file to the repository. CI works with new test too |
@IvanaEscobar I tried to read a simple pair |
What function call are you using to check? Something like the following should work:
I updated the PR description that misled a user to think |
Let me know if you think To really get the blended data sizes read in would take heavier modifications around reading MDS chunks, and possibly would need to introduce variable names in |
Thanks for the clarification, I was indeed trying to use I am still struggling with
but that's probably a problem at my end. When I
i.e. only 2D arrays. That's probably not what you intended, is it? Where do I go wrong? |
Sorry,
I updated the comment above to show the correct way to load I'm seeing the same 2D array limitation. It's an issue with the blended 2D and 3D fields of pickup files. I made more updates to accommodate for the dask pickup read. Can you try loading on your end again? Here is what should work?
Note: I'm hesitant to modify |
Works for regular pickups (where "Eta"-related fields are the only exception to otherwise 3D fields), but what happens when also the CI fails ... |
I wasn't aware The bridge of optional functionality could be crossed when a user requests that feature. Do you think that's okay @mjlosch ? The CI related issue may have belonged in a separate PR, but I went ahead and fixed it. |
There are pickup files for many different packages. Here's a full(?) list (some write pickups only for certain configurations, e.g.
Some of them will be relatively straightforward, others less so, e.g. CI: Can you explain, why your fix now works? I don't understand why |
I added a note in the PR description to clarify that this PR is for the standard pickup files, and not for the optional variations of the pickup file. The CI stopped working in the test cases using the latest version of xarray. Ii's likely that an update to xarray was recently pushed, causing a breaking change in the test_llcreader tests. I don't track xarray, so I'm not positive if this is the case. My fix keeps up with whatever changed in the libraries used for this repo's testing suite. |
Co-authored-by: Martin Losch <30285667+mjlosch@users.noreply.github.com>
Feature allows user to read in standard pickup files with
read_mds
Pickup file structure is expected to contain 3 2D fields, e.g.: