WaterMask

42 views
Skip to first unread message

Phil Edda

unread,
Jun 22, 2025, 4:57:01 AMJun 22
to MintPy
Hi, 
I have been trying to generate watermask.h5 to remove the sea from land in my ifgs. I'm processing stacks of sentinel-1 scenes using TopsStack processing (stackSentinel.py) to input in Mintpy. My question is, can I generate watermask.h5 in Mintpy despite there's no waterMask.rdr, waterMask.rdr.rsc files generated during the TopsStack processing? In what processing stage in Mintpy do I need to specify my parameters (AOI) to generate waterMask files? Thanks.   


Yuan-Kai Liu

unread,
Jun 23, 2025, 12:13:33 PMJun 23
to MintPy
Hi,

It is done during the "network modification" step in the default routine, by reading the geometry file (i.e., the waterMask.rdr or waterBody.rdr)
https://github.com/insarlab/MintPy/blob/a84abe7b768cf12b7127c5040cd26357edf4da9e/src/mintpy/smallbaselineApp.py#L217

You can use `generate_mask.py` and your elevation file to make one. According to the --help of generate_mask.py, you can also select your ROI/AOI interactively on the panel:

Best,
--Kai



Phil Edda

unread,
Aug 13, 2025, 10:59:25 PMAug 13
to MintPy
Thanks Yuan. 
Reply all
Reply to author
Forward
0 new messages