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

date directory

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