Commit 245cf414 authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

L2

parent 995a2207
...@@ -17,14 +17,15 @@ do ...@@ -17,14 +17,15 @@ do
Z2=$(echo $f | cut -d "_" -f3,4,5,6,7 | cut -d "." -f1) Z2=$(echo $f | cut -d "_" -f3,4,5,6,7 | cut -d "." -f1)
ZIPFILE=$Z1_MSIL2A_$Z2.zip ZIPFILE=$Z1_MSIL2A_$Z2.zip
echo $ZIPFILE
if [ ! -e $ZIPFILE ]; then if [ ! -e $ZIPFILE ]; then
unzip ../L1C/$f # unzip ../L1C/$f
DIRNAME=$(echo $f | cut -d "." -f1,2) # DIRNAME=$(echo $f | cut -d "." -f1,2)
echo $DIRNAME # echo $DIRNAME
L2A_Process $DIRNAME.SAFE # L2A_Process $DIRNAME.SAFE
L2A=$(ls -d S2*_MSIL2A* -t |head -1) # L2A=$(ls -d S2*_MSIL2A* -t |head -1)
L2A=$(echo $L2A | cut -d "." -f1) # L2A=$(echo $L2A | cut -d "." -f1)
zip -r $L2A.zip $L2A.SAFE/ # zip -r $L2A.zip $L2A.SAFE/
break break
# rm -r *.SAFE # rm -r *.SAFE
fi fi
......
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