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

parallel

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