L1C to L2A

parent 32ff3f14
......@@ -12,15 +12,15 @@ L2A=$Z1"_MSIL2A_"$Z2
#echo $L2A
if [ ! -e $L2A.zip ]; then
echo "Processing: " $filename " into " $L2A.zip
# unzip -o $filename
unzip -o $filename
DIRNAME=$(echo $basename | cut -d "/" --complement -f1,2)
DIRNAME=$(echo $DIRNAME | cut -d "." -f1).SAFE
echo $DIRNAME
# L2A_Process $DIRNAME
# echo $DIRNAME
L2A_Process $DIRNAME
# zip -r $L2A.zip $L2A.SAFE/
# rm -r $L2A.SAFE/
# rm -r $DIRNAME/
zip -r $L2A.zip $L2A.SAFE/
rm -r $L2A.SAFE/
rm -r $DIRNAME/
else
echo "PASSING: " $L2A.zip " found"
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