comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » spawn GDAL???
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
spawn GDAL??? [message #80889] Wed, 18 July 2012 10:02
anniebryant@gmail.com is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Reading special sentence in txt file in IDL
Next Topic: problem

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:44:10 PDT 2025

Total time taken to generate the page: 0.00509 seconds