Skip to content

Commit

Permalink
water_mask: add --fill while calling geocode.py (#47)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
yunjunz authored Nov 5, 2022
1 parent a3df6ce commit 6a5ca08
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 944 deletions.
3 changes: 2 additions & 1 deletion applications/water_mask.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@
"\n",
"# 2. Convert to radar coordinates\n",
"# This will radar-code the downloaded swbdLat_S01_N00_Lon_W092_W091.wbd into waterBody.h5 file.\n",
"!geocode.py $wbd_file -l inputs/geometryRadar.h5 -o waterBody.h5 --geo2radar\n",
"# The no-data pixels will be filled with value of 255 (as water body)\n",
"!geocode.py $wbd_file -l inputs/geometryRadar.h5 -o waterBody.h5 --geo2radar --fill 255\n",
"view.main('waterBody.h5 -c gray --flip-lr --noverbose'.split())\n",
"\n",
"# 3. Adjust value for MintPy: 0 for water and 1 for land\n",
Expand Down
Loading

0 comments on commit 6a5ca08

Please sign in to comment.