Skip to content

Commit 86a07ed

Browse files
authored
wrap-up for version 1.6.2 (#1390)
+ version: add version tag for v1.6.2 + utils.isce_utils.unwrap_snaphu(): create RSC file if input has one as well + cli.geocode: more usage examples for isce2 files + save_kmz.py: remove whitespace while showing the figure title + unwrap_error_phase_closure: mask out pixels in numTriNonzeroIntAmbiguity.h5 with value == the num of triplets, a.k.a. invalid pixels
1 parent 57e5f02 commit 86a07ed

File tree

5 files changed

+11
-2
lines changed

5 files changed

+11
-2
lines changed

src/mintpy/cli/geocode.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
geocode.py velocity.h5 timeseries.h5 -t smallbaselineApp.cfg --outdir ./geo --update
2323
2424
# geocode file using ISCE-2 lat/lon.rdr file
25-
geocode.py filt_fine.int --lat-file ../../geom_reference/lat.rdr --lon-file ../../geom_reference/lon.rdr
25+
multilook.py lat.rdr.full.vrt lon.rdr.full.vrt -x 9 -y 3
26+
geocode.py filt_fine.int --lat-file lat.rdr --lon-file lon.rdr
2627
2728
# radar-code file in geo coordinates
2829
geocode.py swbdLat_S02_N01_Lon_W092_W090.wbd -l geometryRadar.h5 -o waterMask.rdr --geo2radar

src/mintpy/save_kmz.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ def save_kmz(inps):
480480
inps.norm = colors.Normalize(vmin=inps.vlim[0], vmax=inps.vlim[1])
481481

482482
# output filename
483-
inps.fig_title = pp.auto_figure_title(inps.file, inps.dset, vars(inps))
483+
inps.fig_title = pp.auto_figure_title(inps.file, inps.dset, vars(inps)).replace(' ', '')
484484
inps.outfile = inps.outfile if inps.outfile else f'{inps.fig_title}.kmz'
485485
inps.outfile = os.path.abspath(inps.outfile)
486486

src/mintpy/unwrap_error_phase_closure.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,9 @@ def calc_num_triplet_with_nonzero_integer_ambiguity(ifgram_file, mask_file=None,
173173
num_nonzero_closure[coh == 0] = np.nan
174174
print('mask out pixels with zero in file:', coh_file)
175175

176+
num_nonzero_closure[num_nonzero_closure == C.shape[0]] = np.nan
177+
print('mask out invalid pixels (values == num of triplets)')
178+
176179
# write to disk
177180
print('write to file', out_file)
178181
meta = dict(stack_obj.metadata)

src/mintpy/utils/isce_utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1275,6 +1275,8 @@ def unwrap_snaphu(int_file, cor_file, unw_file, max_defo=2.0, max_comp=32,
12751275
atr['INTERLEAVE'] = 'BIL'
12761276
atr['BANDS'] = '2'
12771277
writefile.write_isce_xml(atr, unw_file)
1278+
if os.path.isfile(int_file+'.rsc'):
1279+
writefile.write_roipac_rsc(atr, unw_file+'.rsc', print_msg=True)
12781280

12791281
if snp.dumpConnectedComponents:
12801282
print(f'write metadata file: {unw_file}.conncomp.xml')
@@ -1283,6 +1285,8 @@ def unwrap_snaphu(int_file, cor_file, unw_file, max_defo=2.0, max_comp=32,
12831285
atr['INTERLEAVE'] = 'BIP'
12841286
atr['BANDS'] = '1'
12851287
writefile.write_isce_xml(atr, f'{unw_file}.conncomp')
1288+
if os.path.isfile(int_file+'.rsc'):
1289+
writefile.write_roipac_rsc(atr, unw_file+'.conncomp.rsc', print_msg=True)
12861290

12871291
# time usage
12881292
m, s = divmod(time.time() - start_time, 60)

src/mintpy/version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
###########################################################################
1515
Tag = collections.namedtuple('Tag', 'version date')
1616
release_history = (
17+
Tag('1.6.2', '2025-07-07'),
1718
Tag('1.6.1', '2024-07-31'),
1819
Tag('1.6.0', '2024-05-09'),
1920
Tag('1.5.3', '2023-11-23'),

0 commit comments

Comments
 (0)