Yes, you’re right I miss-interpreted your previous comments, the results of thr. are required in order to create water extent mapping as it’s explained here, make_water_map
This is an example,
import asf_tools
from asf_tools.water_map import make_water_map
dirpath = ‘D:/WATER_MAP_TEST/’
vh = dirpath + ‘VH/S1A_IW_GRDH_1SDV_20210324T191554_VH_NR_Orb_TC_res_Ltodb.tif’
vv = dirpath + ‘VV/S1A_IW_GRDH_1SDV_20210324T191554_VV_NR_Orb_TC_res_Ltodb.tif’
out_raster = dirpath + ‘water_map_20210324T191554.tif’
make_water_map(
out_raster,
vv,
vh,
hand_raster=None,
tile_shape=(200, 200),
max_vv_threshold=21,
max_vh_threshold=18,
hand_threshold=15.0,
hand_fraction=0.8,
membership_threshold=0.45
)
I hope now the foregoing answers your comment!
