Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nick Bearson
eodn2realearth
Commits
06026753
Commit
06026753
authored
Dec 17, 2015
by
Nick Bearson
Browse files
cleanup
parent
63ecf4fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/process-LCtgz.sh
View file @
06026753
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment