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

readfile: grab ORBIT_DIRECTION for gmtsar #1227

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
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