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
I expect that the code completes without computing any dask arrays and without raising any exceptions.
Actual results
It fails with RuntimeError:
Traceback (most recent call last):
File "/data/gholl/checkouts/protocode/mwe/split-39-early-compute.py", line 11, in <module>
mod([sc["IR_039"], sc["IR_108"]], sc["IR_134"])
File "/data/gholl/checkouts/satpy/satpy/modifiers/spectral.py", line 162, in __call__returnself._get_emissivity_as_dataarray(projectables, optional_datasets)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/gholl/checkouts/satpy/satpy/modifiers/spectral.py", line 173, in _get_emissivity_as_dataarray
emissivity =self._get_emissivity_as_dask(da_nir, da_tb11, da_tb13_4, da_sun_zenith, _nir.attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/gholl/checkouts/satpy/satpy/modifiers/spectral.py", line 186, in _get_emissivity_as_daskreturn reflectance_3x_calculator.emissive_part_3x()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/gholl/mambaforge/envs/py311/lib/python3.11/site-packages/pyspectral/near_infrared_reflectance.py", line 186, in emissive_part_3xreturnself.radiance2tb(self._e3x)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/gholl/mambaforge/envs/py311/lib/python3.11/site-packages/pyspectral/radiance_tb_conversion.py", line 250, in radiance2tbreturn radiance2tb(rad, self.rsr[self.bandname][self.detector]['central_wavelength'] *1e-6)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/gholl/mambaforge/envs/py311/lib/python3.11/site-packages/pyspectral/radiance_tb_conversion.py", line 262, in radiance2tbreturn rad2temp(wavelength, rad)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/gholl/mambaforge/envs/py311/lib/python3.11/site-packages/pyspectral/blackbody.py", line 51, in blackbody_rad2temp
rad = np.array(radiance, dtype='float64')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/gholl/mambaforge/envs/py311/lib/python3.11/site-packages/dask/array/core.py", line 1700, in __array__
x =self.compute()
^^^^^^^^^^^^^^
File "/data/gholl/mambaforge/envs/py311/lib/python3.11/site-packages/dask/base.py", line 342, in compute
(result,) = compute(self, traverse=False, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/gholl/mambaforge/envs/py311/lib/python3.11/site-packages/dask/base.py", line 628, in compute
results = schedule(dsk, keys, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/gholl/checkouts/satpy/satpy/tests/utils.py", line 288, in __call__raiseRuntimeError("Too many dask computations were scheduled: "RuntimeError: Too many dask computations were scheduled: 1
Describe the bug
Calling the modifier
NIREmissivePartFromReflectance
insatpy.modifiers.spectral
leads to early computing of the arrays involved.To Reproduce
Expected behavior
I expect that the code completes without computing any dask arrays and without raising any exceptions.
Actual results
It fails with
RuntimeError
:Environment Info:
Additional context
This is due to a download bug/limitation in pyspectral: pytroll/pyspectral#201
The text was updated successfully, but these errors were encountered: