Skip to content

Commit

Permalink
readfile: grab ORBIT_DIRECTION for gmtsar (#1227)
Browse files Browse the repository at this point in the history
+ utils.readfile._attribute_gmtsar2roipac(): grab ORBIT_DIRECTION for gmtsar
  • Loading branch information
yunjunz authored Jul 17, 2024
1 parent 6495001 commit a8471b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion docs/dir_structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,6 @@ ALOOKS = 8 #[int], number of looks in the azimuth direction
RLOOKS = 32 #[int], number of looks in the range direction
HEADING = -168.0 #[float], satellite heading angle, measured from the north in clockwise as positive
# One could open the *.kml file in Google Earth and measure it manually
ORBIT_DIRECTION = DESCENDING #[ASCENDING, DESCENDING]
mintpy.load.processor = gmtsar
mintpy.load.metaFile = $DATA_DIR/SanFranBaySenD42/supermaster.PRM
Expand Down
8 changes: 8 additions & 0 deletions src/mintpy/utils/readfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -1810,6 +1810,14 @@ def _attribute_gmtsar2roipac(prm_dict_in):
else:
prm_dict['ANTENNA_SIDE'] = '1'

# orbdir -> ORBIT_DIRECTION
key = 'obsdir'
if key in prm_dict_in.keys():
prm_dict['ORBIT_DIRECTION'] = {
'A' : 'ASCENDING',
'D' : 'DESCENDING',
}[prm_dict[key]]

# SC_vel -> AZIMUTH_PIXEL_SIZE (in single look)
key = 'SC_vel'
if key in prm_dict_in.keys():
Expand Down

0 comments on commit a8471b3

Please sign in to comment.