aria-tools / ARIA-tools

Tools for exploiting ARIA standard products

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] amplitude threshold not updated after rerunning

bbuzz31 opened this issue · comments

commented

the amplitude masking is performed by multiplying the watermask and overwriting it. if the watermask already exists, it's overwritten. This is problematic when, for example, trying to experimentally determine the correct amplitude threshold, as if you start with e.g. amp_thresh=1000 and then amp_thresh=100 the mask will not change.

To reproduce by downloading and creating mask with 5 products over Hampton Roads:

ariaDownload.py --bbox "36.75 37.225 -76.655 -75.928" -o count -s 20191101 -e 20191215
ariaExtract.py -f './products/S1*.nc' --dem download --mask Download -at 1000
ariaExtract.py -f './products/S1*.nc' --dem download --mask mask/watermask.msk -at 100
commented

This is addressed with #269