Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jhkennedy opened this issue Jul 29, 2022 · 1 comment

Comments

@jhkennedy
Copy link
Contributor

jhkennedy commented Jul 29, 2022

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

@jhkennedy
Copy link
Contributor Author

jhkennedy commented Jul 29, 2022

We'll need to ask the HydroSAR team their intent for this mask.

I did confirm it's being written in the same way in the source HydroSAR notebooks. See the "Export Your Flood Depth Map as GeoTIFF" section near the bottom:
https://github.com/fjmeyer/HydroSAR/blob/master/Flood_Depth_Estimation_with_Flood_Extent_Maps.ipynb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant