Skip to content
Snippets Groups Projects
Commit 3be06628 authored by pascal.mouquet_ird.fr's avatar pascal.mouquet_ird.fr
Browse files

correction to prevent nodata value change issue when producing jp2 indice mask...

correction to prevent nodata value change issue when producing jp2 indice mask images from jp2 indice images
parent bd71e4e0
No related branches found
No related tags found
No related merge requests found
......@@ -337,7 +337,8 @@ def create_masked_indice(
resampling=Resampling.nearest)
# indice_borders_mask = np.where(raw_indice > 0, raw_indice, 32767)
indice_cloud_mask = np.where(cld_reproj == 0, raw_indice, 32767)
if indice_path.suffix == ".jp2":
indice_cloud_mask = np.where(indice_cloud_mask == 16383, 32767, indice_cloud_mask)
profile.update(driver="Gtiff",
compress="DEFLATE",
tiled=False,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment