pytroll / trollflow2

Next generation Trollflow. Trollflow is for batch-processing satellite data using Satpy
https://trollflow2.readthedocs.org/
GNU General Public License v3.0
10 stars 15 forks source link

Failure when saving in satellite-native projection #88

Closed pnuu closed 4 years ago

pnuu commented 4 years ago

Describe the bug Processing fails when using satellite-native projection, that is null as projection in trollflow.yaml.

To Reproduce Use null as area, like in the following stripped-down non-working product list:

product_list:
  areas:
    null:
      areaname: geos
      products:
        airmass:
          productname: airmass

Expected behavior The images should be saved without resampling.

Actual results Process crashes with

Traceback (most recent call last):
  File "/home/users/satman/current/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/home/users/satman/current/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/home/users/satman/current/lib/python3.8/site-packages/trollflow2/launcher.py", line 268, in process
    cwrk.pop('fun')(job, **cwrk)
  File "/home/users/satman/current/lib/python3.8/site-packages/trollflow2/plugins/__init__.py", line 136, in resample
    if not set(scn.datasets.keys()).issuperset(scn.wishlist):
AttributeError: 'Scene' object has no attribute 'datasets'

Environment Info:

djhoese commented 4 years ago

@mraspaud made .datasets private now so it is ._datasets, but you should be able to do scn.keys() instead anyway.