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

cleanup

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