Save txt output of plot transection

18 views
Skip to first unread message

Dita Faith

unread,
Apr 26, 2024, 5:29:57 AMApr 26
to min...@googlegroups.com
Hi Yunjun,

Is it possible for Mintpy to save the txt output of plot_transection results ?
I would appreciate it if anyone could help with this matter.

regards,
Dita

Zhang Yunjun

unread,
May 7, 2024, 12:10:49 PMMay 7
to MintPy
Hi Dita,

There is no option in the command line for that. But it's available in Python API, as mintpy.utils.utils.transect_lalo (https://github.com/insarlab/MintPy/blob/4d34412b811016e02b9dfc45dc6af519bca85f6a/src/mintpy/utils/utils.py#L361)

Below is an example of usage in Python:

from mintpy.utils import readfile, utils as ut
data, atr = readfile.read('velocity.h5', datasteName='velocity')
txn = ut.transect_lalo(data, atr, start_lalo=[32.0, 110.0], end_lalo=[32.2, 111.0])

Cheers,
Yunjun
Reply all
Reply to author
Forward
0 new messages