Skip to content

Commit

Permalink
Update process_sat.py
Browse files Browse the repository at this point in the history
  • Loading branch information
amanda-tan authored May 26, 2022
1 parent 6c8dc26 commit 21d4597
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aws-landsat/process_sat.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import numpy as np

print('Landsat on AWS:')
filepath = 'https://landsat-class-test.s3.us-east-2.amazonaws.com/LC08_L1TP_042034_20170616_20170629_01_T1_B4.TIF'
filepath = 'https://landsat-class-test.s3.us-east-2.amazonaws.com/LC08_L1TP_042034_20170616_20200903_02_T1_B4.TIF'
with rasterio.open(filepath) as src:
print(src.profile)

Expand All @@ -20,8 +20,8 @@

date = '2017-06-16'
url = 'https://landsat-class-test.s3.us-east-2.amazonaws.com/'
redband = 'LC08_L1TP_042034_20170616_20170629_01_T1_B{}.TIF'.format(4)
nirband = 'LC08_L1TP_042034_20170616_20170629_01_T1_B{}.TIF'.format(5)
redband = 'LC08_L1TP_042034_20170616_20200903_02_T1_B{}.TIF'.format(4)
nirband = 'LC08_L1TP_042034_20170616_20200903_02_T1_B{}.TIF'.format(5)

with rasterio.open(url+redband) as src:
profile = src.profile
Expand Down

0 comments on commit 21d4597

Please sign in to comment.