Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
40619b8
Add ionosphere stack file to prep_aria arguments
ehavazli Mar 5, 2025
482e2d3
bug fix for loading ARIA generated ionosphere stack
ehavazli Mar 5, 2025
353a5df
Merge branch 'main' into main
yunjunz Mar 9, 2025
17d09d3
Merge branch 'main' of github.com:insarlab/MintPy
ehavazli Apr 2, 2025
ce8d7b9
Merge branch 'main' of github.com:insarlab/MintPy
ehavazli May 31, 2025
29f7630
Merge branch 'main' of github.com:insarlab/MintPy
ehavazli Jun 11, 2025
e839935
Merge branch 'insarlab:main' into main
ehavazli Nov 13, 2025
b6b3a57
Merge branch 'main' into main
ehavazli Jan 13, 2026
b2aede6
Merge branch 'insarlab:main' into main
ehavazli Apr 6, 2026
edcda79
Add NISAR auxiliary stacks and improve prep_nisar grid handling
ehavazli Apr 6, 2026
4623ed2
Add early validation for NISAR inputs in load_data
ehavazli Apr 6, 2026
89eca9b
Refactor prep_nisar stack dispatch and interpolation setup
ehavazli Apr 6, 2026
26240e5
Remove duplicate return statement in prep_nisar.py
ehavazli Apr 6, 2026
9605139
populate bperp from NISAR perpendicularBaseline
ehavazli Apr 7, 2026
d3d36cd
Merge branch 'prep_nisar' of github.com:ehavazli/MintPy into prep_nisar
ehavazli Apr 7, 2026
0e01202
import osr explicitly for raster EPSG parsing
ehavazli Apr 7, 2026
bd64a1e
Stop globbing DEM input for NISAR load_data
ehavazli Apr 8, 2026
079da27
Use native GUNW mask as primary mask
ehavazli Apr 8, 2026
1a307bd
support frequency selection and optional layers
ehavazli Apr 10, 2026
037b467
fix Codacy issues in prep_nisar
ehavazli Apr 10, 2026
1f9d1cc
fix remaining Codacy issues
ehavazli Apr 10, 2026
25248fc
fix prep_nisar docstring style
ehavazli Apr 10, 2026
75b1900
use common NISAR mask across all GUNW inputs. Read mask bits
ehavazli Apr 20, 2026
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 @@ -49,6 +49,15 @@ def create_parser(subparsers=None):
help="path to the mask (default: %(default)s).",
)

parser.add_argument(
"-freq",
"--frequency",
dest="frequency",
choices=["auto", "A", "B"],
default="auto",
help="NISAR frequency to load: auto defaults to A (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.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
mintpy.load.baselineDir = auto #[path of the baseline dir], i.e.: ./baselines
Expand Down
21 changes: 19 additions & 2 deletions src/mintpy/load_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,11 +636,28 @@ def prepare_metadata(iDict):
dem_file = iDict['mintpy.load.demFile']
gunw_files = iDict['mintpy.load.unwFile']
water_mask = iDict['mintpy.load.waterMaskFile']
frequency = iDict.get('mintpy.load.frequency', 'auto')

if str(dem_file).lower() in ['auto', 'none', 'no', '']:
raise ValueError(
'mintpy.load.demFile is required for processor=nisar. '
'Please set it to a real DEM path in the template.'
)
dem_file = os.path.expanduser(str(dem_file))
if not os.path.isfile(dem_file):
raise FileNotFoundError(
f'No DEM file found for mintpy.load.demFile: {dem_file}'
)

if len(glob.glob(str(gunw_files))) == 0:
raise FileNotFoundError(
f'No input GUNW files found for mintpy.load.unwFile: {gunw_files}'
)

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

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

if iDict['mintpy.subset.yx']:
Expand Down
Loading