Expose use_cftime option in open_zarr
See original GitHub issueuse_cftime
was recently added as an option to decode_cf
and open_dataset
to give users a little more control over how times are decoded (#2759). It would be good if it was also available for open_zarr
. This perhaps doesn’t have quite the importance, because open_zarr
only works for single data stores, so there is no risk of decoding times to different types (e.g. as there was for open_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.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:7 (5 by maintainers)
Top Results From Across the Web
What's New - Xarray
Expose use_cftime option in open_zarr() (GH2886, PR3229) By Samnan Rahee and Anderson Banihirwe. Bug fixes#. Fix indexing with datetime64 scalars with pandas ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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
@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
cftime.DatetimeGregorian
(e.g., cftime.DatetimeGregorian(2349, 12, 16, 12, 0, 0, 0, 4, 350)) will always generate the warning:For the CMIP6 collection, I always use
use_cftime=True
in open_mfdataset, but then when I make the zarr store and read it back in, it generates these warnings - always a distraction for anyone not used to dealing with this data