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-437243753,https://api.github.com/repos/pydata/xarray/issues/2550,437243753,MDEyOklzc3VlQ29tbWVudDQzNzI0Mzc1Mw==,2443309,2018-11-09T04:08:14Z,2018-11-09T04:08:14Z,MEMBER,"@shoyer and @jsignell - I'd also be happy to see this added to the preprocess function. Ideally the function signature would look like: ```python def preprocess(ds, filename=None): ... return ds ``` This would avoid a breaking change and allow us to add additional kwargs at a later date if need be.","{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,378898407 https://github.com/pydata/xarray/issues/2550#issuecomment-437157299,https://api.github.com/repos/pydata/xarray/issues/2550,437157299,MDEyOklzc3VlQ29tbWVudDQzNzE1NzI5OQ==,2443309,2018-11-08T21:11:08Z,2018-11-08T21:11:08Z,MEMBER,"@jsignell - perhaps not a very pretty solution but we do save the source of each variable in the encoding dictionary. ```python ds['varname'].encoding['source'] ``` Presumably, you could unpack this via a preprocess step.","{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,378898407