satpy.enhancements.wrappers module
Context managers for enhancements.
- satpy.enhancements.wrappers.exclude_alpha(func)[source]
Exclude the alpha channel from the DataArray before further processing.
- satpy.enhancements.wrappers.on_dask_array(func)[source]
Pass the underlying dask array to func instead of the xarray.DataArray.
- satpy.enhancements.wrappers.on_separate_bands(func)[source]
Apply func one band of the DataArray at a time.
If this decorator is to be applied along with on_dask_array, this decorator has to be applied first, eg:
@on_separate_bands @on_dask_array def my_enhancement_function(data): ...
- satpy.enhancements.wrappers.using_map_blocks(func)[source]
Run the provided function using
dask.array.map_blocks().This means dask will call the provided function with a single chunk as a numpy array.