Commit 06026753 authored by Nick Bearson's avatar Nick Bearson
Browse files

cleanup

parent 63ecf4fa
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
# https://www.mapbox.com/blog/processing-landsat-8/ # https://www.mapbox.com/blog/processing-landsat-8/
# http://landsat.usgs.gov/Landsat8_Using_Product.php # http://landsat.usgs.gov/Landsat8_Using_Product.php
# #
# landsat-8 tifs are "digital numbers" (counts), # landsat-8 tifs are "digital numbers" (counts)
# maybe it will help if we create top-of-atmosphere reflectance (or radiance)? # those aren't very useful once the MTL is lost
# the MTL file has scaling factors: # so create top-of-atmosphere radiance files for upload to realearth
# LC80230282015349LGN00_MTL.txt # (could also do reflectance...)
set -u set -u
set -e set -e
...@@ -32,10 +32,7 @@ DOY=${STRIP:13:3} ...@@ -32,10 +32,7 @@ DOY=${STRIP:13:3}
YMD=`date -d "Jan 1 $YEAR + $DOY days - 1 day" "+%Y%m%d"` YMD=`date -d "Jan 1 $YEAR + $DOY days - 1 day" "+%Y%m%d"`
PART=${STRIP:2:7} PART=${STRIP:2:7}
BASE=${STRIP##*/} # filename w/ extension for band in ${BANDS[@]}; do
STRIP=${BASE%%.tar.gz} # filename w/o extension
for band in ${BANDS[@]}; do # FIXME: for when we do multiple bands...
MTL="${STRIP}_MTL.txt" MTL="${STRIP}_MTL.txt"
BN="${STRIP}_B${band}.TIF" BN="${STRIP}_B${band}.TIF"
tar xzf $SCENE $BN $MTL tar xzf $SCENE $BN $MTL
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment