Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

save_roipac: support non-velocity dataset from the velocity file #874

Merged
merged 7 commits into from
Oct 23, 2022
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update save_roipac.py
  • Loading branch information
bjmarfito committed Oct 21, 2022
commit 03870248023f0b7744a308c365a8c41c3e19a0b9
8 changes: 4 additions & 4 deletions mintpy/save_roipac.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ def read_data(inps):
data = readfile.read(inps.file, datasetName = inps.dset)[0]

# velocity to displacement
print('convert velocity to displacement for {}'.format(atr['DATE12']))
date1, date2 = atr['DATE12'].split('_')
dt1, dt2 = ptime.date_list2vector([date1, date2])[0]
data *= (dt2 - dt1).days / 365.25
#print('convert velocity to displacement for {}'.format(atr['DATE12']))
#date1, date2 = atr['DATE12'].split('_')
#dt1, dt2 = ptime.date_list2vector([date1, date2])[0]
#data *= (dt2 - dt1).days / 365.25

bjmarfito marked this conversation as resolved.
Show resolved Hide resolved
# displacement to phase
print('convert displacement to phase in radian')
Expand Down