-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expose use_cftime option in open_zarr #2886
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
Comments
Hey, can I work on this issue? I'm still new to this so a little heads up would be very nice! |
Absolutely - I think this should be as simple as adding a xarray/xarray/backends/zarr.py Lines 542 to 545 in 7b76f16
and adding a test to make sure it works. For more general tips on contributing to xarray, see the contributing guide here. |
Couldn't figure out how to implement the tests |
@Geektrovert and @spencerkclark - any progress on this? It would be great to have it working in time for the CMIP6 hackathon in order to suppress all of the warning messages when opening zarr stores. For example, a zarr store using
For the CMIP6 collection, I always use |
@naomi-henderson, I was working on this. But lately, I have been quite busy so I haven't implemented the tests yet. You can fix it if you wish to. |
Adding tests to #3229 should be pretty straightforward. Great project for someone looking to learn a bit more about xarray internals. |
@spencerkclark @dcherian for transparency I unpinned this to make room for the broken docs -> github link. Feel free to unpin the build warnings if this is still top-of-mind |
* Expose use_cftime option in open_zarr #2886 * Add test for open_zarr w/ use_cftime * Formatting only * Add entry in `whats-new.rst` * Remove space Co-authored-by: Anderson Banihirwe <[email protected]>
use_cftime
was recently added as an option todecode_cf
andopen_dataset
to give users a little more control over how times are decoded (#2759). It would be good if it was also available foropen_zarr
. This perhaps doesn't have quite the importance, becauseopen_zarr
only works for single data stores, so there is no risk of decoding times to different types (e.g. as there was foropen_mfdataset
, #1263); however, it would still be nice to be able to silence serialization warnings that result from decoding times to cftime objects in some instances, e.g. #2754.The text was updated successfully, but these errors were encountered: