dir loop

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