home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 437156317

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/2550#issuecomment-437156317 https://api.github.com/repos/pydata/xarray/issues/2550 437156317 MDEyOklzc3VlQ29tbWVudDQzNzE1NjMxNw== 4806877 2018-11-08T21:07:48Z 2018-11-08T21:07:48Z CONTRIBUTOR

There is a preprocess argument. You provide a function and it is run on every file.

Yes but the input to that function is just the ds, I couldn't figure out a way to get the filename from within a preprocess function. This is what I was doing to poke around in there:

```python def func(ds): import pdb; pdb.set_trace()

xr.open_mfdataset(['./ST4.2018092500.01h', './ST4.2018092501.01h'], engine='pynio', concat_dim='path', preprocess=func) ```

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