You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Writing to NinJoTIFF a thermal channel with Celsius units fails with an AttributeError because the dataset attributes are lost in the new unit conversion introduced in #1615
Traceback (most recent call last):
File "/home/gholl/checkouts/protocode/mwe/ninjotiff-crash.py", line 8, in <module>
ls.save_dataset("4",
File "/home/gholl/checkouts/satpy/satpy/scene.py", line 993, in save_dataset
return writer.save_dataset(self[dataset_id],
File "/home/gholl/checkouts/satpy/satpy/writers/ninjotiff.py", line 202, in save_dataset
return super(NinjoTIFFWriter, self).save_dataset(
File "/home/gholl/checkouts/satpy/satpy/writers/__init__.py", line 811, in save_dataset
return self.save_image(img, filename=filename, compute=compute, fill_value=fill_value, **kwargs)
File "/home/gholl/checkouts/satpy/satpy/writers/ninjotiff.py", line 174, in save_image
return nt.save(img, filename, data_is_scaled_01=True, compute=compute, **kwargs)
File "/data/gholl/miniconda3/envs/py39/lib/python3.9/site-packages/pyninjotiff/ninjotiff.py", line 541, in save
area_def = img.data.area
File "/data/gholl/miniconda3/envs/py39/lib/python3.9/site-packages/xarray/core/common.py", line 239, in __getattr__
raise AttributeError(
AttributeError: 'DataArray' object has no attribute 'area'
Environment Info:
Satpy Version: master
Additional context
Mea culpa, mea culpa, mea massima culpa. PR coming shortly.
The text was updated successfully, but these errors were encountered:
Describe the bug
Writing to NinJoTIFF a thermal channel with Celsius units fails with an
AttributeError
because the dataset attributes are lost in the new unit conversion introduced in #1615To Reproduce
Expected behavior
Writing a file.
Actual results
bla bla bla, then
Environment Info:
Additional context
Mea culpa, mea culpa, mea massima culpa. PR coming shortly.
The text was updated successfully, but these errors were encountered: