GRASS Programmer's Manual  6.4.2(2012)
python::raster Namespace Reference

Functions

def raster_history
 Set the command history for a raster map to the command used to invoke the script (interface to `r.support').
def raster_info
 Return information about a raster map (interface to `r.info').
def mapcalc
 Interface to r.mapcalc.

Function Documentation

def python.raster.mapcalc (   exp,
  quiet = False,
  verbose = False,
  overwrite = False,
  kwargs 
)

Interface to r.mapcalc.

Parameters:
expexpression
kwargs

Definition at line 92 of file raster.py.

References python::core.fatal(), and python::core.write_command().

Set the command history for a raster map to the command used to invoke the script (interface to `r.support').

Parameters:
mapmap name
Returns:
True on success
False on failure

Definition at line 36 of file raster.py.

References python::core.gisenv(), python::core.run_command(), and python::core.warning().

Return information about a raster map (interface to `r.info').

Example:

>>> grass.raster_info('elevation')
{'north': 228500.0, 'timestamp': '"none"', 'min': 55.578792572021499,
'datatype': 'FCELL', 'max': 156.32986450195301, 'ewres': 10.0,
'vertical_datum': '', 'west': 630000.0, 'units': '',
'title': 'South-West Wake county: Elevation NED 10m (elev_ned10m)',
'east': 645000.0, 'nsres': 10.0, 'south': 215000.0}
Parameters:
mapmap name
Returns:
parsed raster info

Definition at line 56 of file raster.py.

References python::core.float_or_dms(), python::core.parse_key_val(), and python::core.read_command().

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines