You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The flood mapping code currently requires three input GeoTIFFs:
_VV.tif -- RTC amplitude image, in VV polarization
_HAND.tif -- Height Above Nearest Drainage data
_WM.tif -- Surface water extent mask (True if water, False if not)
and currently produces four GeoTIFFs:
_PW.tif -- Perennial (permanent) water mask (True if water, False if not)
_WaterDepth.tif -- Depth of water "where there is water" (WM or PW)
_FloodMask.tif -- Currently is "where there is water" (WM or PW)
_FloodDepth.tif Depth of flooded areas (WaterDepth with Perennial water removed)
In it's current iteration, FloodMask would be better called WaterMask as it's the combination WM and PW and has the same extent as WaterDepth. To illustrate, the water depth looks like:
Overlaying PW looks like:
and then the FloodDepth looks like the difference of the two (WaterDepth - PW):
But FloodMask looks like:
So we should either:
Rename it to _WaterMask.tif
Write out aa _FloodMask.tif that matches the FloodDepth
For 1, I think it will be really hard to communicate the differences between the SM GeoTIFF and the WaterMask GeoTIFF as they are very similarly named and scoped.
The flood mapping code currently requires three input GeoTIFFs:
_VV.tif
-- RTC amplitude image, in VV polarization_HAND.tif
-- Height Above Nearest Drainage data_WM.tif
-- Surface water extent mask (True if water, False if not)and currently produces four GeoTIFFs:
_PW.tif
-- Perennial (permanent) water mask (True if water, False if not)_WaterDepth.tif
-- Depth of water "where there is water" (WM or PW)_FloodMask.tif
-- Currently is "where there is water" (WM or PW)_FloodDepth.tif
Depth of flooded areas (WaterDepth with Perennial water removed)In it's current iteration, FloodMask would be better called WaterMask as it's the combination WM and PW and has the same extent as WaterDepth. To illustrate, the water depth looks like:

Overlaying PW looks like:

and then the FloodDepth looks like the difference of the two (WaterDepth - PW):

But FloodMask looks like:

So we should either:
Rename it to_WaterMask.tif
_FloodMask.tif
that matches the FloodDepthFor 1, I think it will be really hard to communicate the differences between the SM GeoTIFF and the WaterMask GeoTIFF as they are very similarly named and scoped.
For 2, it we'd just have to move where we write the FloodMask GeoTIFF
https://github.com/ASFHyP3/asf-tools/blob/develop/asf_tools/flood_map.py#L215-L216
To below this line (where we've removed the perennial water):
https://github.com/ASFHyP3/asf-tools/blob/develop/asf_tools/flood_map.py#L218
The text was updated successfully, but these errors were encountered: