Home > database >  Using GEE call hydra - floods packet error problem, bosses, genuflect is begged
Using GEE call hydra - floods packet error problem, bosses, genuflect is begged

Time:03-19

Complete code for the following

# import the hydrafloods and ee package
The import hydrafloods as hf
The import ee
Ee. The Initialize ()

# specify the start and end time as well as geographic region to process
Start_time="2019-10-05"
End_time="2019-10-06"
Region=ee. Geometry. A Rectangle ([104, 11.5, 106, 12.5])

# get the collection Sentinel - 1
# the hf. The dataset classes performs the spatial - temporal filtering for you
S1=hf. Datasets. Sentinel1 (region, start_time, end_time)

# the apply a water mapping function to the S1 dataset
# this applies the "Edge Otsu algorithm from https://doi.org/10.3390/rs12152469
Water_imgs=s1. Apply_func (
Hf. Thresholding. Edge_otsu,
Initial_threshold=- 14,
thresh_no_data=https://bbs.csdn.net/topics/-20,
Edge_buffer=300
)

# take the mode from multiple images'
# since this is just imagery from one day, it will simple Mosaic the images'
Water_map=ee. Image (water_imgs. Collection. Mode ())

# export the water map
Hf. Geeutils. Export_image (
Water_map,
Region,
"R" C:/Users/Lenovo/AppData/Local/designed/Python/Python37/water_map_example '",
Scale=30,
)



An error as shown in figure