radproc.arcgis.zonalstatistics¶
-
radproc.arcgis.
zonalstatistics
(inZoneData, zoneField, inRaster, outTable, outFC)¶ Calculate Zonal Statistics as Table, join output to copy of zone Feature Class and import resulting table into DataFrame.
Parameters: - inZoneData: String
- Path and name of ArcGIS Polygon Feature Class or Shapefile defining the zones, e.g. counties, watersheds or buffer areas around rain gauges. File is copied within the same directory and copy is called “zonalstat” to avoid changing the input dataset.
- zoneField : String
- Name of field containing the zone names, also used as join field.
- inRaster : String
- Path and name of grid or raster dataset to calculate statistics for, e.g. precipitation raster. All available statistics are calculated (COUNT, MIN, MAX, MEAN, SUM, RANGE, STD).
- outTable : String
- Path and name of dbf table to be created.
- outFC : String
- Path and name of Feature Class to be created. Feature Class will be a copy of inZoneData with outDBF joined to its attribute table.
Returns: - df : pandas DataFrame
- containing data from attribute table