Commit 47d487c0 authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

parallel

parent 63bc9c5f
......@@ -13,8 +13,8 @@ do
datetime=$(echo $filepattern | cut -d"_" -f2) #20170515T162341
dateText=$(echo $datetime | cut -d"T" -f1) #20170515
outDir=$JP2DIR$dateText
filePrefix=$outDir"/"$filepattern
outDir=$JP2DIR$dateText"/"
filePrefix=$outDir$filepattern
echo $filePrefix
echo $outDir
......@@ -24,9 +24,9 @@ do
if [ ! -e $filfilePrefixename"TCI_10m.jp2" -o ! -e $filfilePrefixename"TCI_20m.jp2" -o ! -e $filfilePrefixename"SCL_20m.jp2" ]; then
unzip -n -j $f *TCI_10m.jp2 *TCI_20m.jp2 *SCL_20m.jp2 -d $outDir/
TCI10m=$outDir"/L2A_"$filepattern"TCI_10m.jp2"
TCI20m=$outDir"/L2A_"$filepattern"TCI_20m.jp2"
SCL20m=$outDir"/L2A_"$filepattern"SCL_20m.jp2"
TCI10m=$outDir"L2A_"$filepattern"TCI_10m.jp2"
TCI20m=$outDir"L2A_"$filepattern"TCI_20m.jp2"
SCL20m=$outDir"L2A_"$filepattern"SCL_20m.jp2"
if [ -e $TCI10m ]; then
mv $TCI10m $filePrefix"TCI_10m.jp2"
......
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