GRASS Programmer's Manual  6.4.2(2012)
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
python.array.array Class Reference

Public Member Functions

def __new__
 Define new numpy array.
def read
 Read raster map into array.
def write
 Write array into raster map.

Data Fields

 filename

Detailed Description

Definition at line 35 of file array.py.


Member Function Documentation

def python.array.array.__new__ (   cls,
  dtype = numpy.double 
)

Define new numpy array.

Parameters:
cls
dtypedata type (default: numpy.double)

Definition at line 36 of file array.py.

def python.array.array.read (   self,
  mapname,
  null = None 
)

Read raster map into array.

Parameters:
mapnamename of raster map to be read
nullnull value
Returns:
0 on success
non-zero code on failure

Definition at line 64 of file array.py.

def python.array.array.write (   self,
  mapname,
  title = None,
  null = None,
  overwrite = None 
)

Write array into raster map.

Parameters:
mapnamename for raster map
titletitle for raster map
nullnull value
overwriteTrue for overwritting existing raster maps
Returns:
0 on success
non-zero code on failure

Definition at line 95 of file array.py.


Field Documentation

python.array.array.filename

Definition at line 56 of file array.py.


The documentation for this class was generated from the following file: