Commit 0b61b09f authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

links

parent 1a023a04
......@@ -18,18 +18,18 @@ BOX=$(polygonToBox.py "$POLYGON")
#fi
cd $DIR
#ls *.jp2 | parallel gdal_translate -projwin $BOX -projwin_srs WGS84 -ot Byte -of JPEG {} {}_
#cd ..
ls *.jp2 | parallel gdal_translate -projwin $BOX -projwin_srs WGS84 -ot Byte -of JPEG {} {}_
DIRNAME=$(echo $DIR | cut -d"/" -f1)
echo $DIRNAME
if [ ! -e $DIRNAME"TCI_10m_merged.tif" ]; then
cd $DIR
echo "gdal_merge.py -o ../"$DIRNAME"TCI_10m.tif" $(ls *TCI_10m.jp2)
gdal_merge.py -o $DIRNAME"TCI_10m_merged.tif" $(ls *TCI_10m.jp2)
echo "gdal_merge.py -o ../"$DIRNAME"TCI_10m.tif" $(ls *TCI_10m.jp2_)
gdal_merge.py -o ../$DIRNAME"TCI_10m_merged.tif" $(ls *TCI_10m.jp2_)
cd ..
else
echo PASSING $DIRNAME"TCI_10m_merged.tif" FOUND
echo PASSING $DIRNAME".tif" FOUND
fi
cd ..
# gdal_merge.py -o ../$DIRNAME".tif" $(ls *TCI_10m.jp2)
......
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