home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 195562125

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/793#issuecomment-195562125 https://api.github.com/repos/pydata/xarray/issues/793 195562125 MDEyOklzc3VlQ29tbWVudDE5NTU2MjEyNQ== 4295853 2016-03-11T21:27:19Z 2016-03-11T21:27:33Z CONTRIBUTOR

Quick question @mrocklin, for 2, are you proposing a script that just opens all the files, e.g., something like this

```

get full xr dataset

dslist = [] nfiles = len(glob.glob('dispersion_calcs_rlzn0layerrange_0000-0000.nc')) for i in np.arange(nfiles):
ds = xr.open_mfdataset('dispersion_calcs_rlzn%04d_
nc'%(i)) dslist.append(ds) dstotal = xr.concat(dslist,'Nr')

do an operation spanning Nr space and Nb space

print dstotal.dtdays.values

```

where dtdays spans the all the files? I'm running it now.

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