issue_comments: 1248429163
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/7039#issuecomment-1248429163 | https://api.github.com/repos/pydata/xarray/issues/7039 | 1248429163 | IC_kwDOAMm_X85KaYRr | 35741277 | 2022-09-15T18:01:43Z | 2022-09-19T22:20:15Z | NONE | One last observation. If I just remove dtype from the original encoding and apply it to the dataset before writing to a netcdf, it works fine. Otherwise, I have the issue if I leave dtype in. ```python This worksencoding = {'original_shape': (720, 109, 245),
'missing_value': -32767,
'_FillValue': -32767,
'scale_factor': 0.0009673806360857793,
'add_offset': 282.08577424425226}
This does not workencoding = {'original_shape': (720, 109, 245), 'missing_value': -32767, 'dtype': 'int16', # the original form says it should be 'dtype': dtype('int16'), but this causes an error for me, whereas this form works fine to change between data types '_FillValue': -32767, 'scale_factor': 0.0009673806360857793, 'add_offset': 282.08577424425226} ``` |
{
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
1373352524 |