File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -82,8 +82,10 @@ docker run --rm --entrypoint /home/twlandsat/scripts/gdal2tiles.sh -v $OUTPUTDIR
82
82
83
83
dt=` date ' +%Y-%m-%d %H:%M:%S' `
84
84
echo -e " \e[34m$dt \e[0m Generate preview"
85
- docker run --rm --entrypoint /home/twlandsat/scripts/imagemagick.sh -v $OUTPUTDIR :/root/landsat jimyhuang/twlandsat $LANDSAT ${LANDSAT} _NDVI.TIF ndvi.png
86
- docker run --rm --entrypoint /home/twlandsat/scripts/imagemagick.sh -v $OUTPUTDIR :/root/landsat jimyhuang/twlandsat $LANDSAT ${LANDSAT} _bands_432.TIF rgb.png
85
+ cd $OUTPUTDIR /$LANDSAT && convert ${LANDSAT} _NDVI.TIF -scale 600 -fuzz 5% -transparent black ndvi.png
86
+ cd $OUTPUTDIR /$LANDSAT && convert ${LANDSAT} _NDVI.TIF -scale 1920 ndvi.jpg
87
+ cd $OUTPUTDIR /$LANDSAT && convert ${LANDSAT} _bands_432.TIF -scale 600 -fuzz 5% -transparent black rgb.png
88
+ cd $OUTPUTDIR /$LANDSAT && convert ${LANDSAT} _bands_432.TIF -scale 1920 rgb.png
87
89
88
90
dt=` date ' +%Y-%m-%d %H:%M:%S' `
89
91
echo -e " \e[34m$dt \e[0m Final clear"
Original file line number Diff line number Diff line change 6
6
NAME=$1
7
7
FROM=$2
8
8
TO=$3
9
+ if [ -n " $4 " ]; then
10
+ SIZE=$4
11
+ else
12
+ SIZE=600
13
+ fi
9
14
10
15
cd ~ /landsat/processed/${NAME}
11
- convert $2 -scale 600 -fuzz 5% -transparent black $3
16
+ convert $FROM -scale $SIZE -fuzz 5% -transparent black $TO
You can’t perform that action at this time.
0 commit comments