sisppeo.masks package

Subpackages

Submodules

sisppeo.masks.obs2co_s2wm module

This module contains functions related to the wmOBS2CO package.

The logic is encapsulated inside the function named ‘water_detector’.

Example:

out_array = water_detector([input_arrays])
sisppeo.masks.obs2co_s2wm.overlay_water_mask(image, mask, figsize=(15, 15))[source]

Utility function for plotting RGB images with binary mask overlayed.

sisppeo.masks.obs2co_s2wm.water_detector(bands, plot=False)[source]

Compute the wmOBS2CO water mask.

Parameters
  • bands – List of extracted bands (from S2 or L8_GRS).

  • plot – A boolean flag that indicates if a figure should be plotted or not.

Returns

An DataArray (dimension 1 * N * M) of flagged water surface.

sisppeo.masks.sh_s2cloudless module

This module contains functions related to the s2cloudless package.

The logic is encapsulated inside the function named ‘cloud_detector’.

Example:

out_array = cloud_detector([input_arrays])
sisppeo.masks.sh_s2cloudless.cloud_detector(bands, plot=False)[source]

Compute the s2cloudless cloud mask.

Parameters
  • bands – List of extracted bands (from S2_GRS or L8_GRS).

  • plot – A boolean flag that indicates if a figure should be plotted or not.

Returns

A DataArray (dimension 1 * N * M) of flagged clouds.

sisppeo.masks.sh_s2cloudless.overlay_cloud_mask(image, mask, figsize=(15, 15))[source]

Utility function for plotting RGB images with binary mask overlayed.

Module contents