get_metadata_palette_viz: helper to extract metadata for default viz (only for palette,...

View source: R/get_metadata_palette_viz.R

get_metadata_palette_vizR Documentation

helper to extract metadata for default viz (only for palette, not gamma)

Description

helper to extract palette and min/max values when layer comes with default values. I am sure there is a way to do this GEE, but I could not find it so I made my own. Pretty sure this is also available in geemap

Usage

get_metadata_palette_viz(img, bands)

Arguments

img

image or image collection

bands

bands to visualize

Value

visParams object ready to be added to 'Map$addLayer()'


impact-initiatives-geospatial/surveyGEER documentation built on Feb. 4, 2023, 12:13 p.m.