Commit 5cbaa5e0 authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

L2

parent 4bb4c2ac
......@@ -7,20 +7,25 @@ echo $PWD
echo $OLDPWD
echo $INPUTDIR
cd $INPUTDIR/L1C
if [ ! -d ../L2A ]; then
mkdir ../L2A
fi
for f in $(find . -type f -name '*.zip')
do
if [ ! -d ../L2A ]; then
mkdir ../L2A
fi
cd $INPUTDIR/L2A
unzip ../L1C/$f
filename=$(echo $f | cut -d "." -f1)
L2A_Process $filename.SAFE
L2A=$(ls S2A_MSIL2A* -t |head -1)
dirname=$(echo $f | cut -d "." -f1)
L2A_Process $dirname.SAFE
L2A=$(ls -d S2A_MSIL2A* -t |head -1)
L2A=$(echo $L2A | cut -d "." -f1)
zip -r $L2A.zip $L2A.SAFE/
rm -r *.SAFE
cd $INPUTDIR/L1C
done
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