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/970#issuecomment-240329789,https://api.github.com/repos/pydata/xarray/issues/970,240329789,MDEyOklzc3VlQ29tbWVudDI0MDMyOTc4OQ==,1217238,2016-08-17T07:01:02Z,2016-08-17T07:01:02Z,MEMBER,"In @jhamman's solution, you could also just pass the function directly -- there's no need to use a lambda function in preprocess.
","{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,171504099
https://github.com/pydata/xarray/issues/970#issuecomment-240233948,https://api.github.com/repos/pydata/xarray/issues/970,240233948,MDEyOklzc3VlQ29tbWVudDI0MDIzMzk0OA==,2443309,2016-08-16T20:49:29Z,2016-08-16T20:49:29Z,MEMBER,"@NicWayand -
I would think that you could define your own function:
``` Python
def preprocess(x):
x.load()
x['time'] += 100
return x
```
Then you could use that in your `lambda` function:
``` Python
ds = xr.open_mfdataset(files, concat_dim='time', engine='pynio',
preprocess=lambda x: preprocess(x))
```
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,171504099