Hello everyone, am trying to calculate the flooded areas of a coastal area, I am using sea level rise and storm surge. The storm surges given are small stretches of the coastal line and I am stuck on how to go about this using arcpy. Below is the table of my storm surge with S10 meaning 10 years and S100 meaning 100 years with each row representing a stretch on the coastal area.
I tried to clip each row with the input raster data but i am getting errors.
fc = arcpy.GetParameterAsText(2)
inputraster = arcpy.GetParameterAsText(3)
with arcpy.da.SearchCursor(fc, ["SHAPE@"]) as cursor1:
for rows in cursor1:
geom = rows
cursor = arcpy.da.SearchCursor(fc,['S10','S100'])
row = cursor.next()
outputclip = outputfolder + str(row)+ "_C"
clipgeo = geom
extent = str(clipgeo.Extent)
Any help is really appreciated. Thanks.