dir loop

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