Skip to content

Commit

Permalink
Dummy-proof input
Browse files Browse the repository at this point in the history
  • Loading branch information
sssangha authored Aug 2, 2023
1 parent 67b2e2e commit 6b142f7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tools/bin/ariaDownload.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,12 +268,13 @@ def query_asf(self):
"""Get the scenes from ASF"""
bbox = make_bbox(self.inps.bbox)
bbox = bbox.wkt if bbox is not None else None
if self.inps.flightdir == 'a':
flight_direction = 'ascending'
elif self.inps.flightdir == 'd':
flight_direction = 'descending'
if self.inps.flightdir is not None:
if self.inps.flightdir.lower()[0] == 'a':
flight_direction = 'ascending'
elif self.inps.flightdir == 'd':
self.inps.flightdir.lower()[0] = 'descending'
else:
flight_direction = self.inps.flightdir
flight_direction = None

if self.inps.track is not None:
tracks = self.inps.track.split(',')
Expand Down

0 comments on commit 6b142f7

Please sign in to comment.