pysepal.mapping.visualization.process_vis_params#

pysepal.mapping.visualization.process_vis_params(ee_object, vis_params, viz, use_map_vis, viz_name=None)[source]#

Process the visualization parameters for a given Earth Engine object.

Parameters:
  • ee_object (ComputedObject) – The Earth Engine object (Image, FeatureCollection, etc.) to process.

  • vis_params (dict) – The visualization parameters to apply.

  • viz (dict) – The visualization properties dictionary.

  • use_map_vis (bool) – Whether to use map visualization parameters.

  • viz_name (str | None) – Name of the visualization parameters to retrieve.

Returns:

A tuple containing the processed image, object, and visualization parameters.

Raises:

ValueError – If the provided viz_name cannot be found in the image metadata.

Return type:

tuple