Kai Mühlbauer
Kai Mühlbauer
@slevang Great this works. Could we also change comments in code (where maybe issues) are linked the same way?
Thanks for all the details, @euronion. From what I can tell, everything is OK with the original file. It's using packed data: https://docs.unidata.ucar.edu/nug/current/best_practices.html#bp_Packed-Data-Values. The only thing what might be a...
> As this doesn't surface that often it might just happen here by accident. If the `_FillValue`/`missing_value` would be `-32768` then the issue would not manifest. So for NetCDF the...
MCVE: ```python fname = "test-7691.nc" import netCDF4 as nc with nc.Dataset(fname, "w") as ds0: ds0.createDimension("t", 5) ds0.createVariable("x", "int16", ("t",), fill_value=-32767) v = ds0.variables["x"] v.set_auto_maskandscale(False) v.add_offset = 278.297319296597 v.scale_factor = 1.16753614203674e-05...
@euronion There is a potential fix for your issue in #7654. It would be great, if you could have a closer look and test against that PR.
> , the PR seems to solve my specific issue without changing the encoding Great, thanks for testing.
#7654 got closed without adding several changes to other PR. #8713 takes over.
@euronion Sorry for letting go #7654 out of focus. Would you mind looking/testing #8713 and let us know your thoughts over there? Much appreciated!
Thanks @euronion, no worries, just have a look when you can spare the time.
@JoerivanEngelen @veenstrajelmer Just stepping by from https://github.com/pydata/xarray/pull/8713. Correct, that PR won't fix this particular issue. But I'm aiming for solving the default fillvalue issue over at xarray, too. This is...