Skip to content

Commit

Permalink
try new pull
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquelynsmale committed Nov 21, 2023
1 parent 2b5cdd8 commit 6726ee7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion image_services/opera/make_opera_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ def get_rasters(overview_path, s3_suffix, working_directory):
_, _, bucket, _, _ = overview_path.split('/')
polarization = s3_suffix[1:3]
filename = f'{working_directory}/opera_vsis3_{polarization}.csv'
key = f'opera_uris/opera_vsis3_{polarization}.csv'

s3 = boto3.client('s3')
url_file = s3.download_file(bucket, f'opera_uris/opera_vsis3_{polarization}.csv', filename)
logging.info(f'Downloading {bucket}/{key} to {filename}')
url_file = s3.download_file(bucket, key, filename)

with open(url_file, newline='') as urlfile:
records = urlfile.read().split('\n')[:-1]
Expand Down

0 comments on commit 6726ee7

Please sign in to comment.