[GRASS-user] Python Script- grass.debug

Luisa Peña luisapena1979 at gmail.com
Thu Sep 23 09:08:40 EDT 2010


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/20100923/cfd6b01d/attachment-0001.html


More information about the grass-user mailing list