home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 106068129

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
106068129 MDU6SXNzdWUxMDYwNjgxMjk= 572 Resampling followed by to_array().values 9836205 closed 0     1 2015-09-11T18:40:09Z 2015-09-12T14:53:36Z 2015-09-12T14:53:36Z NONE      

I'm having an issue accessing data as an array after resampling. Before resampling there are no problems using to_array().values but after resampling this same method takes 10+ minutes to complete. The dataset isn't large with dimensions (shape=(1, 672, 180, 360)). I've replicated this with another dataset. I've also tried copying the dataset to another variable but that didn't work either. Does anybody have any thoughts?

``` cmip5_file = "/Users/tj/data/cmip5/access1-0/*.nc"

climate model data

cmip5 = xray.open_mfdataset(cmip5_file) cmip5.time = pandas.to_datetime(cmip5. time.values) print cmip5.to_array().values ## accesses the data just fine

resampled = cmip5.resample('MS', 'time', how='mean') print resampled.to_array().values ## this takes 10+ minutes ```

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/572/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 1 row from issues_id in issues_labels
  • 1 row from issue in issue_comments
Powered by Datasette · Queries took 0.633ms · About: xarray-datasette