Commit 2eba61ac authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

date directory

parent 5b3f258f
...@@ -17,19 +17,20 @@ do ...@@ -17,19 +17,20 @@ do
dateText=$(echo $filepattern | cut -d"T" -f1) #20170515 dateText=$(echo $filepattern | cut -d"T" -f1) #20170515
echo $filename echo $filename
if [ ! -d $JP2DIR$dateText ]; then echo $JP2DIR$dateText
mkdir $JP2DIR$dateText # if [ ! -d $JP2DIR$dateText ]; then
fi # mkdir $JP2DIR$dateText
if [ ! -e $filename"TCI_10m.jp2" ]; then # fi
# if [ ! -e $filename"TCI_10m.jp2" ]; then
unzip -n -j $f *TCI_10m.jp2 -d $JP2DIR$dateText/
L2ANAME=$JP2DIR$dateText"/L2A_"$filepattern"TCI_10m.jp2" # unzip -n -j $f *TCI_10m.jp2 -d $JP2DIR$dateText/
if [ -e $L2ANAME ]; then # L2ANAME=$JP2DIR$dateText"/L2A_"$filepattern"TCI_10m.jp2"
mv $L2ANAME $filename"TCI_10m.jp2" # if [ -e $L2ANAME ]; then
fi # mv $L2ANAME $filename"TCI_10m.jp2"
else # fi
echo PASS $f # else
fi # echo PASS $f
# fi
# RGBCROPED=$JP2DIR"rgbCroped/" # RGBCROPED=$JP2DIR"rgbCroped/"
# if [ ! -d $RGBCROPED ]; then # if [ ! -d $RGBCROPED ]; then
......
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