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

fixing up the eodn management a bit

parent ee8d81b8
......@@ -12,6 +12,7 @@ set -e
#BANDS=(1 2 3 4 5 6 7 8 9 10 11)
BANDS=(1 2 3 4) # nadir seems to be struggling, try just a few bands?
BANDS=(8) # the high res!
DIR="${BASH_SOURCE%/*}"
if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi
......@@ -39,6 +40,9 @@ for band in ${BANDS[@]}; do
tar xzf $SCENE $BN $MTL
log "calculating TOA radiance"
sct=$(grep "SCENE_CENTER_TIME =" $MTL)
echo ${sct}
echo ${sct} | cut -d " " -f 7
vmul=$(grep "RADIANCE_MULT_BAND_${band} =" $MTL | cut -d " " -f 7)
vadd=$(grep "RADIANCE_ADD_BAND_${band} =" $MTL | cut -d " " -f 7)
......
#!/usr/bin/env bash
set -ue
DIR="${BASH_SOURCE%/*}"
if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi
. "$DIR/consts.sh"
pkill eodn_feed
echo "eodn_feed stopped"
#!/usr/bin/env bash
# https://www.mapbox.com/blog/processing-landsat-8/
# http://landsat.usgs.gov/Landsat8_Using_Product.php
#
# 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
DIR="${BASH_SOURCE%/*}"
if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi
. "$DIR/consts.sh"
cd ${INCOMING}
nohup eodn_feed -r "LC8[0-9]{3}(0[0-9]{2}|1[0-1][0-9]|12[0-2])[0-9]{4}[0-3][0-9][0-9].*" > ${LOGS}/eodn_feed.log 2>&1 &
#!/usr/bin/env bash
set -ue
DIR="${BASH_SOURCE%/*}"
if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi
. "$DIR/consts.sh"
......@@ -12,5 +14,6 @@ mkdir -p ${INCOMING}
cd ${INCOMING}
# start eodn_feed
nohup eodn_feed 0<&- &>> ${LOGS}/eodn_feed.log &
pgrep eodn_feed &> /dev/null && echo "eodn_feed already running" && exit 1 || \
nohup eodn_feed -v --host "unis.crest.iu.edu" --port "8890" --r "LC8[0-9]{3}(0[0-9]{2}|1[0-1][0-9]|12[0-2])[0-9]{4}[0-3][0-9][0-9].*" > ${LOGS}/eodn_feed.log 2>&1 &
#!/usr/bin/env bash
PID=$(pgrep eodn_feed) && echo "eodn_feed running as ${PID}" && exit 0 || echo "eodn_feed not running" && exit 1
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