Commit 3dc9483e authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

parallel

parent 0a53f4b3
......@@ -15,7 +15,7 @@ cd $INPUTDIR/L2A
# cd $INPUTDIR/L2A
# echo $f
ls ../L1C/*.zip | parallel --jobs 8 L1CToL2A.sh
ls ../L1C/*.zip | parallel --jobs 1 L1CToL2A.sh
# ls ../L1C/*.zip | parallel --jobs 8 echo
# Z1=$(echo $f | cut -d "_" -f1)
......
......@@ -14,12 +14,12 @@ if [ ! -e $L2A.zip ]; then
echo "Processing: " $filename
# unzip filename
DIRNAME=$(echo $filename | cut -d "/" --complement -f1,2)
DIRNAME=$(echo $DIRNAME | cut -d "." -f1).SAFE
echo $DIRNAME
L2A_Process $DIRNAME
DIRNAME=$(echo $DIRNAME | cut -d "." -f1).SAFE
echo "DIRNAME "$DIRNAME
# L2A_Process $DIRNAME
zip -r $L2A.zip $L2A.SAFE/
rm -r $L2A.SAFE/
# zip -r $L2A.zip $L2A.SAFE/
# rm -r $L2A.SAFE/
rm -r $DIRNAME/
else
echo "PASSING: ZIP" $ZIPFILE " found"
......
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