[GRASS-user] Python script

Pedro Camargo veigacamargo at gmail.com
Tue Jul 2 17:04:20 PDT 2013


Hi,
	I'm trying to use r.stats via the python shell inside GRASS but I'm
getting an error that I do not know how to solve.  The code I'm using is
this:

grass.run_command('r.stats',input=inp,output='D:\\CropScape\\2012_cdls\\AZ.c
sv',flags = 'ani')

I already tried the following variables for input:

inp=['AZ','COUNTIES']
inp=['AZ at PERMANENT ','COUNTIES at PERMANENT']
inp=['D:\\CropScape\\2012_cdls\\AZ.tif',
'D:\\CropScape\\Counties\\COUNTIES.tif']


Every time I get the same error: " GRASS_INFO_ERROR(1444,1): Raster map
<D:\CropScape\2012_cdls\AZ.tif> not found"

Any idea of what could be?


Thanks,
	Pedro



More information about the grass-user mailing list