Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 25 additions & 2 deletions odc/stats/plugins/gm.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,19 @@ def __init__(
self.cloud_filters = cloud_filters
self._renames = aux_names
self.aux_bands = tuple(
self._renames.get(k, k) for k in ("smad", "emad", "bcmad", "count")
self._renames.get(k, k)
for k in (
"smad",
"emad",
"bcmad",
"count",
"red",
"green",
"blue",
"nir",
"swir1",
"swir2",
)
)

self._work_chunks = work_chunks
Expand Down Expand Up @@ -164,7 +176,18 @@ def __init__(
mask_band: str = "fmask",
nodata_classes: Optional[Tuple[str, ...]] = ("nodata",),
cloud_filters: Dict[str, Iterable[Tuple[str, int]]] = None,
aux_names=dict(smad="sdev", emad="edev", bcmad="bcdev", count="count"),
aux_names=dict(
smad="sdev",
emad="edev",
bcmad="bcdev",
count="count",
red="nbart_red",
green="nbart_green",
blue="nbart_blue",
nir="nbart_nir",
swir1="nbart_swir_1",
swir2="nbart_swir_2",
),
rgb_bands=None,
**kwargs,
):
Expand Down