radproc.arcgis.raster_to_array

radproc.arcgis.raster_to_array(raster)

Imports all values of a raster and converts them to one-dimensional array.

Parameters:
raster : string
Path to raster dataset (e.g. containing ID values).
Returns:
arr : one-dimensional numpy array
containing all values of study area without surrounding NoData values.