Home »
Public Forums »
archive »
spawn GDAL???
spawn GDAL??? [message #80889] |
Wed, 18 July 2012 10:02 |
anniebryant@gmail.com
Messages: 16 Registered: March 2009
|
Junior Member |
|
|
Hi group,
Anyway to call gdal from IDL using SPAWN? Currently I have gdal wrapped up in a small shell script that loops through days of year. Seems like SPAWN has no problem with the shell script, but once it gets to gdal_merge.py, I get error messages.
________________________________________________________
Here is the call in IDL:
spawn, 'sh /home/scripts/mosaic_8day.sh'
Here is the shell script:
# Loop through each directory
for i in `ls -d /usr/local/snow/data/archive/2004/*`
do
cd $i
var=$i
#extract date from directory name
date=${var:64:67}
echo $date
gdal_merge.py MOD09GA.*.h09v05.8DAY.tif MOD09GA.*.h09v04.8DAY.tif MOD09GA.*.h10v04.8DAY.tif -o UCRB.$date.8DAY.tif
done
_______________________________________
Any thoughts?
Thanks!
Annie
|
|
|
Current Time: Wed Oct 08 18:41:44 PDT 2025
Total time taken to generate the page: 0.00449 seconds