issues: 1575010200
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1575010200 | I_kwDOAMm_X85d4L-Y | 7514 | find daily maximum and associated timestamp to the hour in xarray | 94073032 | open | 0 | 0 | 2023-02-07T20:56:21Z | 2023-02-07T20:56:21Z | NONE | What is your issue?Hello, I am finding myself in a puzzling situation with using xarray. I need to find the daily maximum value of an xarray object but I also need to retain the associated time step to the hour, without losing that information, as instead happens with the resample functionality. There is usually a functionality, such as on="time", which would allow to read the field, but it does not seem to be supported by xarray. Do you know if there is any other elegant way to do what I need to do? I put a code snippet below import xarray as xr obj = xr.open_dataset("/atmos.2019010100-2019123123.u_ref.nc") # can be any nc file obj = obj.resample(time='1D').max() Many thanks for your help in advance |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/7514/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
13221727 | issue |