Update contrib/stack/topsStack/fetchOrbit.py

Co-authored-by: Ryan Burns <rtburns@jpl.nasa.gov>
LT1AB
Bryan Marfito 2021-03-24 06:21:03 +08:00 committed by GitHub
parent 7c9f061f59
commit f1187fd935
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -148,12 +148,12 @@ if __name__ == '__main__':
if oType == 'precise':
end_date = fileTS + datetime.timedelta(days=20)
url = server + spec[1] + str(end_date.year).zfill(2) + '/' + str(end_date.month).zfill(2) + \
'/' + str(end_date.day).zfill(2) + '/'
elif oType == 'restituted':
url = server + spec[1] + str(fileTS.year).zfill(2) + '/' + str(fileTS.month).zfill(2) + \
'/' + str(fileTS.day).zfill(2) +'/'
end_date = fileTS
else:
throw ValueError("Unexpected orbit type: '" + oType + "'")
url = server + spec[1] + str(end_date.year).zfill(2) + '/' + str(end_date.month).zfill(2) + \
'/' + str(end_date.day).zfill(2) + '/'
success = False
match = None