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

Home » Public Forums » archive » Re: spawn GDAL???
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: spawn GDAL??? [message #80886 is a reply to message #80885] Wed, 18 July 2012 12:24 Go to previous messageGo to previous message
anniebryant@gmail.com is currently offline  anniebryant@gmail.com
Messages: 16
Registered: March 2009
Junior Member
On Wednesday, July 18, 2012 11:02:10 AM UTC-6, AB wrote:
> 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

Here is my error:


Traceback (most recent call last):
File "/usr/local/GDAL/usr/bin/gdal_merge.py", line 31, in ?
import gdal
File " /usr/local/GDAL/usr/lib64/python2.4/site-packages/GDAL-1.8.0 -py2.4-linux-x86_64.egg/gdal.py ", line 2, in ?
from osgeo.gdal import deprecation_warn
File " /usr/local/GDAL/usr/lib64/python2.4/site-packages/GDAL-1.8.0 -py2.4-linux-x86_64.egg/osgeo/__init__.py ", line 24, in ?
import _gdal
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Coyote Library Updates
Next Topic: IDL Statistical Tests

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

Current Time: Sat Oct 11 03:43:39 PDT 2025

Total time taken to generate the page: 0.95799 seconds