issues: 503583044
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
503583044 | MDU6SXNzdWU1MDM1ODMwNDQ= | 3379 | `ds.to_zarr(mode="a", append_dim="time")` not capturing any time steps under Hours | 48155582 | closed | 0 | 3 | 2019-10-07T17:17:06Z | 2024-05-03T18:34:50Z | 2024-05-03T18:34:50Z | NONE | MCVE Code Sample```python import datetime import xarray as xr date = datetime.datetime(2019, 1, 1, 1, 10) Reading in 2 min time stepped MRMS datads = xr.open_rasterio(dir_path) ds.name = "mrms" ds["time"] = date ds = ds.expand_dims("time") ds = ds.to_dataset() ds.to_zarr("fin_zarr", compute=False, mode="w-") date = datetime.datetime(2019, 1, 1, 1, 12) Reading in 2 min time stepped MRMS dataThis can be the same file since we are adding time manuallyds = xr.open_rasterio(dir_path) ds.name = "mrms" ds["time"] = date ds = ds.expand_dims("time") ds = ds.to_dataset() ds.to_zarr("fin_zarr", compute=False, mode="a", append_dim="time") ``` Expected Output
Problem DescriptionThe outout looks like this:
Where the minutes are repeated for the whole hour until a new hour is appended. It seems to not be handling minutes correctly. Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/3379/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |