issues: 323839238
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
323839238 | MDU6SXNzdWUzMjM4MzkyMzg= | 2145 | Dataset.resample() adds time dimension to independant variables | 22245117 | open | 0 | 5 | 2018-05-17T01:15:01Z | 2022-03-21T05:15:52Z | CONTRIBUTOR | Code Sample, a copy-pastable example if possible```python ds = ds.resample(time='1D',keep_attrs=True).mean() ``` Problem descriptionI'm downsampling in time a dataset which also contains timeless variables. I've noticed that resample adds the time dimension to the timeless variables. One workaround is: 1) Split the dataset in a timeless and a time-dependent dataset 2) Resample the time-dependent dataset 3) Merge the two datasets This is not a big deal, but I was wondering if I'm missing some flag that avoids this behavior. If not, is it something that can be easily implemented in resample? It would be very useful for datasets with variables on staggered grids. Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/2145/reactions", "total_count": 3, "+1": 3, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
13221727 | issue |