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

parallel

parent 293fb07b
...@@ -5,23 +5,23 @@ POLYGON=$2 #Crop Window ...@@ -5,23 +5,23 @@ POLYGON=$2 #Crop Window
BOX=$(polygonToBox.py "$POLYGON") BOX=$(polygonToBox.py "$POLYGON")
DIRNAME=$(echo $DIR | cut -d"/" -f1) DIRNAME=$(echo $DIR | cut -d"/" -f1)
echo $DIRNAME
#if [ ! -e $DIRNAME".tif" ]; then
# cd $DIR
# echo "gdal_merge.py -o ../"$DIRNAME".tif" $(ls *.jp2)
# gdal_merge.py -o ../$DIRNAME".tif" $(ls *.jp2)
# cd ..
#fi
if [ ! -e $DIRNAME".tif" ]; then #if [ ! -e $dir".jp2" ]; then
cd $DIR # gdal_translate -projwin $BOX -projwin_srs WGS84 -ot Byte -of JPEG $dir".tif" $dir".jp2"
echo "gdal_merge.py -o ../"$DIRNAME".tif" $(ls *.jp2) #fi
gdal_merge.py -o ../$DIRNAME".tif" $(ls *.jp2)
cd ..
fi
if [ ! -e $dir".jp2" ]; then #rasterWkt.py "$POLYGON" $dir.jp2 $dir"_p.tif"
gdal_translate -projwin $BOX -projwin_srs WGS84 -ot Byte -of JPEG $dir".tif" $dir".jp2"
fi
rasterWkt.py "$POLYGON" $dir.jp2 $dir"_p.tif"
#cd $DIR
cd $DIR #find . -name *.xml -type f -delete
find . -name *.xml -type f -delete
......
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