From 21d45971c99134bb311e1e977a1b7b4174b01069 Mon Sep 17 00:00:00 2001 From: amanda-tan Date: Wed, 25 May 2022 23:05:08 -0700 Subject: [PATCH] Update process_sat.py --- aws-landsat/process_sat.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aws-landsat/process_sat.py b/aws-landsat/process_sat.py index ee7465c..c177bf2 100755 --- a/aws-landsat/process_sat.py +++ b/aws-landsat/process_sat.py @@ -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) @@ -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