issues: 249188875
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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 249188875 | MDU6SXNzdWUyNDkxODg4NzU= | 1506 | Support for basic math (multiplication, difference) on two xarray-Datasets | 30219501 | closed | 0 | 3 | 2017-08-09T23:16:09Z | 2017-08-10T16:14:41Z | 2017-08-10T16:14:41Z | NONE | Lets assume one has loaded two datasets 'datmod' and 'datref' containing daily data over one year. Data look like:
Now I want to compute a more complex metric as the temporal correlation and combine it with the functionality of groupby or resample, i.e. determine the temporal correlation for each month seperately. So, starting with ``` def anomaly(x): return x - x.mean('time') a = datref.groupby('time.month').apply(anomaly)
b = datmod.groupby('time.month').apply(anomaly)
I can overcome the problem by doing something like Is there a way to overcome the problem of elementwise multiplication (as well as subtraction) or should such a feature be added in the future? |
{
"url": "https://api.github.com/repos/pydata/xarray/issues/1506/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
completed | 13221727 | issue |