dir loop

parent 2328531f
......@@ -69,8 +69,8 @@ cd $JP2DIR
for f in *; do
if [ -d ${f} ]; then
cd $f
echo "gdal_merge.py -separate -co PHOTOMETRIC=RGB -o ../"$f".tiff " $(ls *.jp2)
gdal_merge.py -separate -co PHOTOMETRIC=RGB -o ../$f".tiff " $(ls *.jp2)
echo "gdal_merge.py -o ../"$f".tiff " $(ls *.jp2)
gdal_merge.py -o ../$f".tiff " $(ls *.jp2)
cd ..
echo $f
fi
......
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