Skip to content

Flood Mask GeoTIFFs produced by flood mapping don't represent associated Flood Depth GeoTIFFs #136

@jhkennedy

Description

@jhkennedy

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:
image

Overlaying PW looks like:
image

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

But FloodMask looks like:
image

So we should either:

  1. Rename it to _WaterMask.tif
  2. 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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions