Commit 8b846ea7 authored by Nick Bearson's avatar Nick Bearson
Browse files

changed the notion of "quarantine" so that we save all scenes in case we want...

changed the notion of "quarantine" so that we save all scenes in case we want to dig something up later, will need some kind of cleanup
parent 73714381
...@@ -23,15 +23,18 @@ elif [ ${filename:0:2} == "LC" ] && [ ${filename: -7} == ".tar.gz" ]; then # la ...@@ -23,15 +23,18 @@ elif [ ${filename:0:2} == "LC" ] && [ ${filename: -7} == ".tar.gz" ]; then # la
echo "SAW LANDSAT TAR.GZ: ${filename}" echo "SAW LANDSAT TAR.GZ: ${filename}"
SCRIPT="bash /home/eodn/eodn2realearth/src/process-LCtgz.sh" SCRIPT="bash /home/eodn/eodn2realearth/src/process-LCtgz.sh"
else # not recognized else # not recognized
echo "QUARANTINE (NOT RECOGNIZED): ${filename}" echo "SAW (NOT RECOGNIZED): ${filename}"
mkdir -p ${QUARANTINE}
mv $filepath ${QUARANTINE}/${filename}
exit 0 exit 0
fi fi
# just quarantine everything for now in case we want it later
# (is quarantine the right word anymore? oh well...)
mkdir -p ${QUARANTINE}
mv $filepath ${QUARANTINE}/${filename}
mkdir -p ${PROCESSING}/${filename} mkdir -p ${PROCESSING}/${filename}
cd ${PROCESSING}/${filename} cd ${PROCESSING}/${filename}
mv $filepath ${filename} ln $filepath ${filename} # make a hard link so we don't actually duplicate input data; OK as long as processing doesn' tmess w/ it
$SCRIPT ${filename} $SCRIPT ${filename}
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
rm -r ${PROCESSING}/${filename} rm -r ${PROCESSING}/${filename}
......
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