This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import numpy as np | |
import gdal | |
import sys | |
MV = 8500 | |
gdal.UseExceptions() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 8=no_contiguity, 9=sea, 10=cloud_acca, 11=cloud_fmask, | |
# 12=cloudshadow_acca, 13=cloudshadow_fmask, 14=toposhadow | |
import numpy as np | |
xsize, ysize, nbands = 4000, 4000, 6 | |
# generate some test data | |
pq = np.zeros((xsize, ysize), dtype=np.uint16) | |
for bit in [9,8,11]: |