Skip to content

Commit 0f397cf

Browse files
author
Emma Ai
committed
mark landcover level1 as nodata when geomad nodata
1 parent ea8f32e commit 0f397cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

odc/stats/plugins/lc_veg_class_a1.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,10 @@ def l3_class(self, xx: xr.Dataset):
212212

213213
# Mask nans and pixels where non of classes applicable
214214
l3_mask = expr_eval(
215-
"where((e<=0)|(e==254), nodata, e)",
215+
"where((e<=0)|(e==254)|(g!=g), nodata, e)",
216216
{
217217
"e": l3_mask,
218+
"g": si5,
218219
},
219220
name="mark_nodata",
220221
dtype="uint8",

0 commit comments

Comments
 (0)