AnsweredAssumed Answered

How to calculate flooded areas for the shore line

Question asked by stashaestha1 on Nov 13, 2017
Latest reply on Nov 15, 2017 by stashaestha1

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[0]
del cursor1
cursor = arcpy.da.SearchCursor(fc,['S10','S100'])
row = cursor.next()
while row:
   while row[0]:
     outputclip = outputfolder + str(row[0])+ "_C"
     clipgeo = geom
     extent = str(clipgeo.Extent)
     arcpy.Clip_management(inputraster,extent,outputclip,"#","ClippingGeometry","MAINTAIN_EXTENT")

 

Any help is really appreciated. Thanks.

Attachments

Outcomes