home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 349493856

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
349493856 MDU6SXNzdWUzNDk0OTM4NTY= 2361 Indexing dataset with dimension name stored in python variable 16919188 closed 0     1 2018-08-10T12:17:48Z 2018-08-10T15:57:16Z 2018-08-10T15:57:16Z NONE      

I try to work with some netCDF file who can have various dimensions names like NTime0, NTime1 ... Is there a way to indexing dataset with dimension name stored in python variable ?

python timesel = ['2017-08-09','2017-01-10'] for dim in ds.dims : if dim.find("Time")>=0 : ds = ds.sel(dim=timesel) **ValueError: dimensions or multi-index levels ['dim'] do not exist**

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/2361/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

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