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 <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>GetParameterAsText<SPAN class="punctuation token">(</SPAN><SPAN class="number token">2</SPAN><SPAN class="punctuation token">)</SPAN>
inputraster <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>GetParameterAsText<SPAN class="punctuation token">(</SPAN><SPAN class="number token">3</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="keyword token">with</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>da<SPAN class="punctuation token">.</SPAN>SearchCursor<SPAN class="punctuation token">(</SPAN>fc<SPAN class="punctuation token">,</SPAN> <SPAN class="punctuation token">[</SPAN><SPAN class="string token">"SHAPE@"</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="keyword token">as</SPAN> cursor1<SPAN class="punctuation token">:</SPAN>
<SPAN class="keyword token">for</SPAN> rows <SPAN class="keyword token">in</SPAN> cursor1<SPAN class="punctuation token">:</SPAN>
geom <SPAN class="operator token">=</SPAN> rows<SPAN class="punctuation token">[</SPAN><SPAN class="number token">0</SPAN><SPAN class="punctuation token">]</SPAN>
<SPAN class="keyword token">del</SPAN> cursor1
cursor <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>da<SPAN class="punctuation token">.</SPAN>SearchCursor<SPAN class="punctuation token">(</SPAN>fc<SPAN class="punctuation token">,</SPAN><SPAN class="punctuation token">[</SPAN><SPAN class="string token">'S10'</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="string token">'S100'</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">)</SPAN>
row <SPAN class="operator token">=</SPAN> cursor<SPAN class="punctuation token">.</SPAN>next<SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="keyword token">while</SPAN> row<SPAN class="punctuation token">:</SPAN>
<SPAN class="keyword token">while</SPAN> row<SPAN class="punctuation token">[</SPAN><SPAN class="number token">0</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">:</SPAN>
outputclip <SPAN class="operator token">=</SPAN> outputfolder <SPAN class="operator token">+</SPAN> str<SPAN class="punctuation token">(</SPAN>row<SPAN class="punctuation token">[</SPAN><SPAN class="number token">0</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="operator token">+</SPAN> <SPAN class="string token">"_C"</SPAN>
clipgeo <SPAN class="operator token">=</SPAN> geom
extent <SPAN class="operator token">=</SPAN> str<SPAN class="punctuation token">(</SPAN>clipgeo<SPAN class="punctuation token">.</SPAN>Extent<SPAN class="punctuation token">)</SPAN>
arcpy<SPAN class="punctuation token">.</SPAN>Clip_management<SPAN class="punctuation token">(</SPAN>inputraster<SPAN class="punctuation token">,</SPAN>extent<SPAN class="punctuation token">,</SPAN>outputclip<SPAN class="punctuation token">,</SPAN>"<SPAN class="comment token">#","ClippingGeometry","MAINTAIN_EXTENT")</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Any help is really appreciated. Thanks.