Commit 30a2e2fb authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

ndvi

parent e69e26c3
......@@ -6,4 +6,4 @@ WINDOW=$3 #Crop Window
$B1="08"
$B2="04"
sh productListToIndex.sh $PRODCUTSDIR $JP2DIR $WINDOW $JP2DIR/ndvi/ $B1 $B2
sh productListToIndex.sh $PRODCUTSDIR $JP2DIR $WINDOW $JP2DIR"ndvi/" $B1 $B2
......@@ -48,14 +48,16 @@ do
python3 $HOME/git/GeoSentinel/geosentinel/normalizedIndex.py $B1FN $B2FN $OUTPUTDIR"/"$fileout2"_"$fileout1".tiff"
fi
if [ ! -d "video" ]; then
mkdir video
cd $OUTPUTDIR
if [ ! -d $fileout1 ]; then
mkdir $fileout1
fi
cd ..
if [ ! -e $OUTPUTDIR$fileout1/$fileout2"_"$fileout1".jpg" ]; then
gdal_translate -projwin $BOX -projwin_srs WGS84 -ot Byte -scale 0 255 0 255 -of JPEG $OUTPUTDIR$$fileout2"_"$fileout1".tiff" $OUTPUTDIR$fileout1/$fileout2"_"$fileout1".jpg"
fi
# set GDAL_PAM_ENABLED=NO
gdal_translate -projwin $BOX -projwin_srs WGS84 -ot Byte -scale 0 255 0 255 -of JPEG $OUTPUTDIR"/"$fileout2"_"$fileout1".tiff" video/$fileout2"_"$fileout1".jpg"
# set GDAL_PAM_ENABLED=YES
rm *.xml
cd $PRODCUTSDIR
......
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