start_eodn.sh 566 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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}
18
19

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 &
20
21