rgb update

parent ae947d57
#!/bin/sh
PRODCUTSDIR=$1 #Products directory
JP2DIR=$2 #JP2 Directory
WINDOW=$3 #Crop Window
POLYGON=$3 #Crop Window
BOX=$(python3 "$HOME/GeoSentinel/geosentinel/polygonToBox.py" "$POLYGON")
cd $PRODCUTSDIR
for f in $(find . -type f -name '*.zip')
do
......@@ -44,7 +44,7 @@ do
if [ ! -e video/$fileout2"_"$fileout1".jpg" ]; then
gdal_translate -projwin $3 -projwin_srs WGS84 -ot Byte -scale 0 4096 0 255 -of JPEG rgb/$fileout2"_"$fileout1".jp2" video/$fileout2"_"$fileout1".jpg"
gdal_translate -projwin $BOX -projwin_srs WGS84 -ot Byte -scale 0 4096 0 255 -of JPEG rgb/$fileout2"_"$fileout1".jp2" video/$fileout2"_"$fileout1".jpg"
convert video/$fileout2"_"$fileout1".jpg" -resize 640x480\! video/$fileout2"_"$fileout1".jpg"
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