home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 359066317

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/issues/1844#issuecomment-359066317 https://api.github.com/repos/pydata/xarray/issues/1844 359066317 MDEyOklzc3VlQ29tbWVudDM1OTA2NjMxNw== 1889878 2018-01-19T19:31:43Z 2018-01-19T19:43:38Z NONE

I end up doing the following: ```

dset, mean, std - all XArray objects as explained above

time_index = dset.time.dt.dayofyear dset_mean = mean.sel(dayofyear=time_index) dset_std = std.sel(dayofyear=time_index) new_dset = ((dset - dset_mean) / dset_std).drop("dayofyear") `` One issue though is that this quite bad on memory as it constructs 3 arrays in memmory as large as the original one. If anoyne has any suggestion on how to improve this I would be very grateful. Also is it possible to compute and storenew_dset` simutlanously so I don't create it in memory?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  290023410
Powered by Datasette · Queries took 0.746ms · About: xarray-datasette