Commit 6ba44ab8 authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

rgb

parent f0cc0b20
...@@ -9,12 +9,16 @@ cd $PRODCUTSDIR ...@@ -9,12 +9,16 @@ cd $PRODCUTSDIR
for f in $(find . -type f -name '*.zip') for f in $(find . -type f -name '*.zip')
do do
filepattern=L2A_$(echo $f | cut -d"_" -f6)"_"$(echo $f | cut -d"_" -f3)"_" filepattern=$(echo $f | cut -d"_" -f6)"_"$(echo $f | cut -d"_" -f3)"_"
filename=$JP2DIR$filepattern filename=$JP2DIR$filepattern
echo $filename echo $filename
if [ ! -e $filename"TCI_10m.jp2" ]; then if [ ! -e $filename"TCI_10m.jp2" ]; then
unzip -n -j $f *TCI_10m.jp2 -d $JP2DIR unzip -n -j $f *TCI_10m.jp2 -d $JP2DIR
L2ANAME=$JP2DIR"L2A_"$filepattern"TCI_10m.jp2"
if [ ! -e $L2ANAME ]; then
mv L2ANAME $filename"TCI_10m.jp2"
fi
else else
echo PASS $f echo PASS $f
fi 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