Commit fde94a2a authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

rgb

parent 49d14770
......@@ -22,16 +22,7 @@ do
else
echo PASS $f
fi
# break
#
# cd $JP2DIR
# red=$(ls $filepattern"04.jp2" -t |head -1)
# green=$(ls $filepattern"03.jp2" -t |head -1)
# blue=$(ls $filepattern"02.jp2" -t |head -1)
# echo "red-"$red
# echo "gre-"$green
# echo "blu-"$blue
RGBCROPED=$JP2DIR"rgbCroped/"
if [ ! -d $RGBCROPED ]; then
......@@ -47,12 +38,10 @@ do
# fi
# cd rgbCroped
if [ ! -d $RGBCROPED$fileout1 ]; then
mkdir $RGBCROPED$fileout1
fi
# cd ..
echo $BOX
if [ ! -e $JP2DIR"rgbCroped/"$fileout1/$fileout2"_"$fileout1".jpg" ]; then
gdal_translate -projwin $BOX -projwin_srs WGS84 -ot Byte -of JPEG $filename"TCI_10m.jp2" $JP2DIR"rgbCroped/"$fileout1/$fileout2"_"$fileout1"_10m.jpg"
......
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