[GRASS-user] Re: Python Script- grass.debug
Luisa Peña
luisapena1979 at gmail.com
Mon Sep 27 05:57:18 EDT 2010
I have sent this email a couple of days ago with no reply. Can anyone help
me?
Luisa
2010/9/23 Luisa Peña <luisapena1979 at gmail.com>
> Hi there
>
> I'm doing a Python script, based on r.in.aster, to import a set of images
> but, I'm not sure for that is used the following:
> grass.debug("gdalwarp -t_srs %s %s %s" % (proj, srcfile, tempfile))
> WHat is the point of using grass.debug if I do the following after this:
> if platform.system() == "Darwin":
> cmd = ["arch", "-i386", "gdalwarp", "-t_srs", proj, srcfile,
> tempfile ]
> else:
> cmd = ["gdalwarp", "-t_srs", proj, srcfile, tempfile ]
> p = grass.call(cmd)
> if p != 0:
> #check to see if gdalwarp executed properly
> return
>
>
> Thanks
>
> Luisa
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20100927/03ccf0bb/attachment.html
More information about the grass-user
mailing list