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

rgb l2

parent 3d796c81
...@@ -40,19 +40,21 @@ do ...@@ -40,19 +40,21 @@ do
# if [ ! -e $OUTIMG ]; then # if [ ! -e $OUTIMG ]; then
gdal_translate -projwin $BOX -projwin_srs WGS84 -ot Byte -of JPEG $filename"TCI_10m.jp2" $OUTIMG gdal_translate -projwin $BOX -projwin_srs WGS84 -ot Byte -of JPEG $filename"TCI_10m.jp2" $OUTIMG
wktToShape.py "$POLYGON" myShape.shp # wktToShape.py "$POLYGON" myShape.shp
gdal_rasterize -b 1 -b 2 -b 3 -burn 10 -burn 200 -burn 10 -l wtk myShape.shp $OUTIMG # gdal_rasterize -b 1 -b 2 -b 3 -burn 10 -burn 200 -burn 10 -l wtk myShape.shp $OUTIMG
rm myShape.* # rm myShape.*
## convert rgb/$fileout1/$fileout2"_"$fileout1"_t.jpg" -resize 640x480\! rgb/$fileout1/$fileout2"_"$fileout1".jpg" ## convert rgb/$fileout1/$fileout2"_"$fileout1"_t.jpg" -resize 640x480\! rgb/$fileout1/$fileout2"_"$fileout1".jpg"
## rm rgb/$fileout1/$fileout2"_"$fileout1"_t.jpg" ## rm rgb/$fileout1/$fileout2"_"$fileout1"_t.jpg"
# fi # fi
# cd $PRODCUTSDIR # cd $PRODCUTSDIR
break
done done
cd $JP2DIR cd $JP2DIR
find . -name *.xml -type f -delete find . -name *.xml -type f -delete
find . -name myShape.* -type f -delete #find . -name myShape.* -type f -delete
## if [ ! -d "video" ]; then ## if [ ! -d "video" ]; then
## mkdir video ## mkdir video
......
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