user input

parent dca85094
......@@ -2,23 +2,25 @@
#Convert L1C Products to L2A using L2A_Process
filename=$1 #L1C Filename
basename=${s##*/}
echo $filename
echo $basename
#Z1=$(echo $(echo $filename | cut -d "_" -f1) | cut -d "/" -f3)
#Z2=$(echo $filename | cut -d "_" -f3,4,5,6,7 | cut -d "." -f1)
Z1=$(echo $(echo $filename | cut -d "_" -f1) | cut -d "/" -f3)
Z2=$(echo $filename | cut -d "_" -f3,4,5,6,7 | cut -d "." -f1)
#L2A=$Z1"_MSIL2A_"$Z2
L2A=$Z1"_MSIL2A_"$Z2
#if [ ! -e $L2A.zip ]; then
# echo "Processing: " $filename " into " $L2A.zip
## unzip -o $filename
## DIRNAME=$(echo $filename | cut -d "/" --complement -f1,2)
## DIRNAME=$(echo $DIRNAME | cut -d "." -f1).SAFE
## L2A_Process $DIRNAME
if [ ! -e $L2A.zip ]; then
echo "Processing: " $filename " into " $L2A.zip
# unzip -o $filename
# DIRNAME=$(echo $filename | cut -d "/" --complement -f1,2)
# DIRNAME=$(echo $DIRNAME | cut -d "." -f1).SAFE
# L2A_Process $DIRNAME
# zip -r $L2A.zip $L2A.SAFE/
# rm -r $L2A.SAFE/
# rm -r $DIRNAME/
else
echo "PASSING: " $L2A.zip " found"
fi
## 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