GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
python.array.array Class Reference
Inheritance diagram for python.array.array:
Collaboration diagram for python.array.array:

Public Member Functions

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

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: