Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/mintpy/cli/prep_nisar.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ def create_parser(subparsers=None):
help="NISAR frequency to load: auto defaults to A (default: %(default)s).",
)

parser.add_argument(
"-ba",
"--band",
dest="sar_band",
choices=["auto", "LSAR", "SSAR"],
default="auto",
help="NISAR product family to load: auto defaults to LSAR (default: %(default)s).",
)

parser.add_argument(
"-o",
"--out-dir",
Expand Down
1 change: 1 addition & 0 deletions src/mintpy/defaults/smallbaselineApp.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ mintpy.load.processor = auto #[isce, aria, hyp3, gmtsar, snap, gamma, roi
mintpy.load.autoPath = auto #[yes / no], auto for no, use pre-defined auto path
mintpy.load.updateMode = auto #[yes / no], auto for yes, skip re-loading if HDF5 files are complete
mintpy.load.compression = auto #[gzip / lzf / none / default], auto for default (none/lzf for stack/geometry).
mintpy.load.band = auto #[auto / LSAR / SSAR], auto for LSAR, NISAR only
mintpy.load.frequency = auto #[auto / A / B], auto for A, NISAR only
##---------for ISCE only:
mintpy.load.metaFile = auto #[path of common metadata file for the stack], i.e.: ./reference/IW1.xml, ./referenceShelve/data.dat
Expand Down
3 changes: 2 additions & 1 deletion src/mintpy/load_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,7 @@ def prepare_metadata(iDict):
dem_file = iDict['mintpy.load.demFile']
gunw_files = iDict['mintpy.load.unwFile']
water_mask = iDict['mintpy.load.waterMaskFile']
band = iDict.get('mintpy.load.band', 'auto')
frequency = iDict.get('mintpy.load.frequency', 'auto')

if str(dem_file).lower() in ['auto', 'none', 'no', '']:
Expand All @@ -655,7 +656,7 @@ def prepare_metadata(iDict):
)

# run prep_*.py
iargs = ['-i', gunw_files, '-d', dem_file, '--frequency', frequency]
iargs = ['-i', gunw_files, '-d', dem_file, '--band', band, '--frequency', frequency]

if str(water_mask).lower() not in ['auto', 'none', 'no', ''] and os.path.exists(water_mask):
iargs = iargs + ['--mask', water_mask]
Expand Down
Loading