Commit 876dc8a6 authored by Nick Bearson's avatar Nick Bearson
Browse files

fix for running process-LCzip.sh with full path files

parent dfa887d7
......@@ -12,14 +12,14 @@ WMSUPLOAD=${DIR}/re_upload
SCENE=$1
log "PROCESSING: $1"
YEAR=${SCENE:9:4}
DOY=${SCENE:13:3}
YMD=`date -d "Jan 1 $YEAR + $DOY days - 1 day" "+%Y%m%d"`
PART=${SCENE:2:7}
BASE=${SCENE##*/} # filename w/ extension
STRIP=${BASE%%.zip} # filename w/o extension
YEAR=${STRIP:9:4}
DOY=${STRIP:13:3}
YMD=`date -d "Jan 1 $YEAR + $DOY days - 1 day" "+%Y%m%d"`
PART=${STRIP:2:7}
TMP=tmp
mkdir -p $TMP
unzip $SCENE -d $TMP
......
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