Package madrona :: Package analysistools :: Module grass :: Class Grass
[hide private]

Class Grass

source code


If being used to load the source mapset then tmpMapset should be None or False.  
If you're running any commands with outputs, use tmpMapset=True (autogenerates 
  tmpMapset name) or specify a unique name.
autoclean=True/False determines if tmpMapset gets deleted at Grass.__del__()
gisdbase and gisbase should be set in django settings or overriden with kwargs

Instance Methods [hide private]
 
__init__(self, location, srcMapset='PERMANENT', tmpMapset=True, gisdbase=None, gisbase=None, autoclean=True) source code
 
__del__(self) source code
 
__repr__(self) source code
 
revision(self) source code
 
grass_tmp(self) source code
 
grass_path(self) source code
 
grass_version(self) source code
 
grass_lib_path(self) source code
 
setupTmpGrassEnv(self, mktmp=True) source code
 
createTempMapset(self) source code
 
cleanup(self) source code
 
writeGrassRc(self) source code
 
setEnv(self, key, value) source code
 
getRastPath(self) source code
 
run(self, cmd, nice=None) source code
 
copyMap(self, type, mapName) source code
 
v_in_ogr(self, input, output) source code
 
r_in_gdal(self, input, output) source code
 
r_sum(self, input) source code
 
r_area(self, input, cell_size) source code
 
r_intersect(self, result, m1, m2) source code
 
v_to_r(self, vMap, rMap, val) source code
 
__areaOfCells(self, numCells, cell_size) source code
 
g_remove(self, type, layer) source code
 
list(self) source code
Method Details [hide private]

revision(self)

source code 
Decorators:
  • @property

grass_tmp(self)

source code 
Decorators:
  • @property

grass_path(self)

source code 
Decorators:
  • @property

grass_version(self)

source code 
Decorators:
  • @property

grass_lib_path(self)

source code 
Decorators:
  • @property