rayleigh.py
needs refactoring - mainly concerning the handling of Dask vs non-Dask input
#139
Labels
rayleigh.py
needs refactoring - mainly concerning the handling of Dask vs non-Dask input
#139
Code Sample, a minimal, complete, and verifiable piece of code
The code conserning the atm correction in the visible spectrum ("Rayleigh" correction) needs refactoring. the
get_reflectance
method for instance, is rather complex and long. And the handling of Dask or pure Numpy inputs is difficult to maintain. See for instance #137Also, the code below, that mimics the example on the RTD pages (which works - see second example here) but here with "real" data, fails with a rather odd error.
Problem description
The above code should work, returning an array of reflectances. The same call without the
redband
as input works fine.In general it would be nice to have support for both Dask arrays, Numpy arrays and Xarrays (with Dask or not).
Expected Output
No error as below.
Actual Result, Traceback if applicable
Versions of Python, package at hand and relevant dependencies
Thank you for reporting an issue !
The text was updated successfully, but these errors were encountered: