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

Fix bug with requests folder url #55

Merged
merged 1 commit into from
Jun 6, 2024
Merged
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
8 changes: 4 additions & 4 deletions bin/LiCSBAS01_get_geotiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def main(argv=None):
else:
### Get available dates
print('Searching latest epoch for mli...', flush=True)
url = os.path.join(LiCSARweb, trackID, frameID, 'epochs')
url = os.path.join(LiCSARweb, trackID, frameID, 'epochs', '')
response = requests.get(url)

response.encoding = response.apparent_encoding #avoid garble
Expand All @@ -225,7 +225,7 @@ def main(argv=None):
for i, imd in enumerate(reversed(_imdates)):
if np.mod(i, 10) == 0:
print("\r {0:3}/{1:3}".format(i, len(_imdates)), end='', flush=True)
url_epoch = os.path.join(url, imd)
url_epoch = os.path.join(url, imd, '')
response = requests.get(url_epoch)
response.encoding = response.apparent_encoding #avoid garble
html_doc = response.text
Expand Down Expand Up @@ -254,7 +254,7 @@ def main(argv=None):

### Get available dates
print('\nDownload GACOS data', flush=True)
url = os.path.join(LiCSARweb, trackID, frameID, 'epochs')
url = os.path.join(LiCSARweb, trackID, frameID, 'epochs', '')
response = requests.get(url)
response.encoding = response.apparent_encoding #avoid garble
html_doc = response.text
Expand Down Expand Up @@ -318,7 +318,7 @@ def main(argv=None):
#%% unw and cc
### Get available dates
print('\nDownload geotiff of unw and cc', flush=True)
url_ifgdir = os.path.join(LiCSARweb, trackID, frameID, 'interferograms')
url_ifgdir = os.path.join(LiCSARweb, trackID, frameID, 'interferograms', '')
response = requests.get(url_ifgdir)

response.encoding = response.apparent_encoding #avoid garble
Expand Down