rgb update

parent b23c49cf
...@@ -33,22 +33,22 @@ do ...@@ -33,22 +33,22 @@ do
fileout1=$(echo $filepattern | cut -d"_" -f1) fileout1=$(echo $filepattern | cut -d"_" -f1)
fileout2=$(echo $filepattern | cut -d"_" -f2) fileout2=$(echo $filepattern | cut -d"_" -f2)
if [ ! -e rgb/$fileout2"_"$fileout1".jp2" ]; then if [ ! -e rgb/$fileout2"_"$fileout1".tiff" ]; then
gdal_merge.py -separate -co PHOTOMETRIC=RGB -o rgb/$fileout2"_"$fileout1".tiff" $filepattern"04.jp2" $filepattern"03.jp2" $filepattern"02.jp2" gdal_merge.py -separate -co PHOTOMETRIC=RGB -o rgb/$fileout2"_"$fileout1".tiff" $filepattern"04.jp2" $filepattern"03.jp2" $filepattern"02.jp2"
fi fi
# if [ ! -d "video" ]; then if [ ! -d "video" ]; then
# mkdir video mkdir video
# fi fi
# if [ ! -e video/$fileout2"_"$fileout1".jpg" ]; then if [ ! -e video/$fileout2"_"$fileout1".jpg" ]; then
# gdal_translate -projwin $BOX -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".tiff" video/$fileout2"_"$fileout1".jpg"
# convert video/$fileout2"_"$fileout1".jpg" -resize 640x480\! video/$fileout2"_"$fileout1".jpg" # convert video/$fileout2"_"$fileout1".jpg" -resize 640x480\! video/$fileout2"_"$fileout1".jpg"
# fi fi
# cd $PRODCUTSDIR cd $PRODCUTSDIR
done done
......
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