pycensus.cadaster.metrics¶
Building-stock columns per zone (H3 cell, census polygon, raster pixel) from unified cadaster buildings (pycensus.cadaster).
A building belongs to the zone holding its centroid (its point for point sources). Columns (global-schema names):
buildingCount, builtFloorArea (m2), builtFloorAreaResidential, builtFloorAreaNonResidential, buildingFootprintArea (m2),
dwellings, dwellingsPerBuilding, builtAreaPerDwelling (residential m2 / dwelling), floorsMean (footprint-weighted),
floorsMax, heightMax / heightMedian (footprint-weighted), residentialBuiltShare, yearBuiltMedian (built-area-weighted),
populationNightCadaster / populationDayCadaster (sources that estimate it, e.g. NSI)
zone_metrics(b, zone)
¶
Building-stock columns per zone id (zone: one id per building row, NaN = outside every zone).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
b
|
Buildings (unified schema). |
required | |
zone
|
Series
|
Zone id per building. |
required |
Returns:
| Type | Description |
|---|---|
DataFrame
|
One row per zone. |
h3_zone(b, resolution)
¶
H3 cell id (string) of each building's centroid / point.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
b
|
Buildings. |
required | |
resolution
|
int
|
H3 resolution. |
required |
Returns:
| Type | Description |
|---|---|
Series
|
Series of H3 ids. |
cell_floor_area(b, resolution)
¶
(cells, residential floor area, other floor area) per H3 cell holding a building's centroid / point: sorted uint64 cell ids with at least one building. Residential = use_class residential or mixed (gross floor area, built_area_m2).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
b
|
Buildings (unified schema). |
required | |
resolution
|
int
|
H3 resolution. |
required |