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

rgb

parent f0cc0b20
......@@ -9,12 +9,16 @@ cd $PRODCUTSDIR
for f in $(find . -type f -name '*.zip')
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
echo $filename
if [ ! -e $filename"TCI_10m.jp2" ]; then
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
echo PASS $f
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