add

parent a1e7ec31
#!/bin/sh
BASEDIR="$1"
acu=1
ext=.jpg
for f in $(find . -type f -name '*.zip')
do
unzip -j $f *B02.jp2 *B03.jp2 *B04.jp2 -d .
red=$(ls *B04.jp2 -t |head -1)
green=$(ls *B03.jp2 -t |head -1)
blue=$(ls *B02.jp2 -t |head -1)
m=$(pwd)
red=$m/$red
green=$m/$green
blue=$m/$blue
./jp2ToJPGandStretch $red
./jp2ToJPGandStretch $green
./jp2ToJPGandStretch $blue
red=$(ls *B04.jpg -t |head -1)
green=$(ls *B03.jpg -t |head -1)
blue=$(ls *B02.jpg -t |head -1)
m=$(pwd)
red=$m/$red
green=$m/$green
blue=$m/$blue
convert $red $green $blue -combine $2$acu$ext
rm *.jp2
rm *B04.jpg
rm *B03.jpg
rm *B02.jpg
acu=$((acu+1))
done
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