Commit 61b71a60 authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

update

parent 3e846506
...@@ -9,7 +9,7 @@ cd $DIR ...@@ -9,7 +9,7 @@ cd $DIR
DIRNAME=$(echo $DIR | cut -d"/" -f1) DIRNAME=$(echo $DIR | cut -d"/" -f1)
echo $DIRNAME echo $DIRNAME
##------------------------------------------------------------------------------ ##------------------------------------------------------------------------------
MERGEDIMAGE=$DIRNAME"_TCI_10m_merged.tif" MERGEDIMAGE=$DIRNAME"_TCI_60m_merged.tif"
if [ ! -e $MERGEDIMAGE ]; then if [ ! -e $MERGEDIMAGE ]; then
echo "gdal_merge.py -o "$MERGEDIMAGE $(ls *TCI_10m.jp2) echo "gdal_merge.py -o "$MERGEDIMAGE $(ls *TCI_10m.jp2)
gdal_merge.py -o $MERGEDIMAGE $(ls *TCI_10m.jp2) gdal_merge.py -o $MERGEDIMAGE $(ls *TCI_10m.jp2)
...@@ -17,7 +17,7 @@ else ...@@ -17,7 +17,7 @@ else
echo PASSING $MERGEDIMAGE FOUND echo PASSING $MERGEDIMAGE FOUND
fi fi
CROPEDIMAGE=../merge_out/$DIRNAME"_TCI_10m.tif" CROPEDIMAGE=../merge_out/$DIRNAME"_TCI_60m.tif"
if [ ! -e $CROPEDIMAGE ]; then if [ ! -e $CROPEDIMAGE ]; then
gdal_translate -projwin $BOX -projwin_srs WGS84 -ot Byte -of JPEG $MERGEDIMAGE $CROPEDIMAGE gdal_translate -projwin $BOX -projwin_srs WGS84 -ot Byte -of JPEG $MERGEDIMAGE $CROPEDIMAGE
else else
......
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