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/1586#issuecomment-334954046,https://api.github.com/repos/pydata/xarray/issues/1586,334954046,MDEyOklzc3VlQ29tbWVudDMzNDk1NDA0Ng==,1217238,2017-10-07T17:52:22Z,2017-10-07T17:52:22Z,MEMBER,"I'm OK copying encoding, but we do still need to figure out general rules for propagating it.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,259935100
https://github.com/pydata/xarray/issues/1586#issuecomment-334907267,https://api.github.com/repos/pydata/xarray/issues/1586,334907267,MDEyOklzc3VlQ29tbWVudDMzNDkwNzI2Nw==,2443309,2017-10-07T03:29:48Z,2017-10-07T03:29:48Z,MEMBER,"@crusaderky - After thinking about it, I'm still a 👍 on copying the encoding in this case.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,259935100
https://github.com/pydata/xarray/issues/1586#issuecomment-334857886,https://api.github.com/repos/pydata/xarray/issues/1586,334857886,MDEyOklzc3VlQ29tbWVudDMzNDg1Nzg4Ng==,6213168,2017-10-06T20:10:33Z,2017-10-06T20:10:33Z,MEMBER,Can we reach a resolution on this? It's blocking #1551...,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,259935100
https://github.com/pydata/xarray/issues/1586#issuecomment-331770787,https://api.github.com/repos/pydata/xarray/issues/1586,331770787,MDEyOklzc3VlQ29tbWVudDMzMTc3MDc4Nw==,2443309,2017-09-25T03:50:19Z,2017-09-25T03:50:19Z,MEMBER,I agree that we haven't done a good job defining how `encoding` should behave. I agree that any modification of the shape/type of an xarray object should probably drop the original encoding. I don't know if a copy should drop the encoding though. I don't see why we shouldn't be able rountrip datasets via a open/load/copy/write workflow.,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,259935100
https://github.com/pydata/xarray/issues/1586#issuecomment-331754521,https://api.github.com/repos/pydata/xarray/issues/1586,331754521,MDEyOklzc3VlQ29tbWVudDMzMTc1NDUyMQ==,1217238,2017-09-25T01:20:08Z,2017-09-25T01:20:08Z,MEMBER,"I think this was intentional at one point, but to be honest we never carefully defined the semantics for preserving `encoding` are.
My original thought (along the lines of some of my comments in https://github.com/pydata/xarray/issues/1297), was that we should not propagate `encoding` in cases where it might no longer be valid, so it should be dropped from most operations. Essentially, `encoding` should *only* stay with original files loaded from disk. Hence why it wasn't copied in `.copy()`.
That said, I can see why this rule would be confusing and we haven't done a good job of enforcing it. Possibly a better policy would be ""`encoding` is copied whenever `attrs` is copied"".","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,259935100
https://github.com/pydata/xarray/issues/1586#issuecomment-331725939,https://api.github.com/repos/pydata/xarray/issues/1586,331725939,MDEyOklzc3VlQ29tbWVudDMzMTcyNTkzOQ==,6213168,2017-09-24T17:36:21Z,2017-09-24T17:36:21Z,MEMBER,"By looking at the code, copy() is the only case where it is proper to pass the encoding to \_construct\_direct, but somebody please confirm","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,259935100