Skip to content

Commit 6a5ca08

Browse files
authored
water_mask: add --fill while calling geocode.py (#47)
* water_mask: add --fill while calling geocode.py to better handle the no-data-value region, outside of the frame/burst/swath definition, e.g. in S1. * smallbaselineApp_aria: use info.py --date --num --compact
1 parent a3df6ce commit 6a5ca08

2 files changed

Lines changed: 6 additions & 944 deletions

File tree

applications/water_mask.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,8 @@
213213
"\n",
214214
"# 2. Convert to radar coordinates\n",
215215
"# This will radar-code the downloaded swbdLat_S01_N00_Lon_W092_W091.wbd into waterBody.h5 file.\n",
216-
"!geocode.py $wbd_file -l inputs/geometryRadar.h5 -o waterBody.h5 --geo2radar\n",
216+
"# The no-data pixels will be filled with value of 255 (as water body)\n",
217+
"!geocode.py $wbd_file -l inputs/geometryRadar.h5 -o waterBody.h5 --geo2radar --fill 255\n",
217218
"view.main('waterBody.h5 -c gray --flip-lr --noverbose'.split())\n",
218219
"\n",
219220
"# 3. Adjust value for MintPy: 0 for water and 1 for land\n",

0 commit comments

Comments
 (0)