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/5490#issuecomment-1531496369,https://api.github.com/repos/pydata/xarray/issues/5490,1531496369,IC_kwDOAMm_X85bSMex,5821660,2023-05-02T13:38:49Z,2023-05-02T13:38:49Z,MEMBER,"This is indeed an issue with `scale_factor` and `add_offset` as @d70-t has already mentioned.
That is not a problem per se, but those attributes are obviously different for different files. When concatenating only the first files's attributes survive. That might already be the source of the above problem, as it might slightly change values.
An even bigger problem is, when the dynamic range of the decoded data (min/max) doesn't overlap. Then the data might be folded from the lower border to the upper border or vica versa.
I've put an example into #5739. The suggestion for now is as @keewis comment to drop encoding in such cases and use floating point values for writing. You might use the available compression options for floating point data.
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,924676925
https://github.com/pydata/xarray/issues/5490#issuecomment-1531465011,https://api.github.com/repos/pydata/xarray/issues/5490,1531465011,IC_kwDOAMm_X85bSE0z,5821660,2023-05-02T13:20:46Z,2023-05-02T13:20:46Z,MEMBER,"Xref: #5739
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,924676925
https://github.com/pydata/xarray/issues/5490#issuecomment-864386633,https://api.github.com/repos/pydata/xarray/issues/5490,864386633,MDEyOklzc3VlQ29tbWVudDg2NDM4NjYzMw==,5821660,2021-06-19T10:18:21Z,2021-06-19T10:18:21Z,MEMBER,"@lthUniBonn You would need to use `kwarg` `mask_and_scale=False` in the call to `open_dataset`. `decode_cf=False` will work too, but it completely disables any cf decoding. ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,924676925