Skip to content

Commit

Permalink
gps: bugfix component string (insarlab#811)
Browse files Browse the repository at this point in the history
bugfix on the string for identifying the component

mintpy/objects/gps.py
  • Loading branch information
yuankailiu committed Jul 13, 2022
1 parent 632a394 commit d1aa094
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mintpy/objects/gps.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,11 +463,11 @@ def displacement_enu2los(self, inc_angle:float, az_angle:float, gps_comp='enu2lo
elif gps_comp in ['u2los', 'up2los']:
unit_vec[0] = 0.
unit_vec[1] = 0.
elif gps_comp in ['horz']:
elif gps_comp in ['horz','horizontal']:
unit_vec[0] = np.sin(horz_az_angle) * -1
unit_vec[1] = np.cos(horz_az_angle)
unit_vec[2] = 0.
elif gps_comp in ['vertical']:
elif gps_comp in ['vert','vertical']:
unit_vec[0] = 0.
unit_vec[1] = 0.
unit_vec[2] = 1.
Expand Down

0 comments on commit d1aa094

Please sign in to comment.