voxcity.models.VoxCity¶
- class voxcity.models.VoxCity¶
-
- buildings: BuildingGrid¶
- land_cover: LandCoverGrid¶
- tree_canopy: CanopyGrid¶
- extras: Dict[str, Any]¶
- to_xarray()¶
Named-dimension view of the model’s grids as an
xarray.Dataset.Dims are the axis-contract tokens (
voxel:("north", "east", "up"); 2-D grids:("north", "east")), so every access carries its axis names —ds.dem.isel(north=0)is unambiguously the south edge. Coordinates are cell-centre metres in the (possibly rotated) grid frame:(index + 0.5) * meshsize. DataArrays wrap the existing ndarrays without copying.min_heights(object dtype) andextrasare not representable and stay on the dataclass. lon/lat is derivable viavoxcity.utils.projector.GridProjector.rotation_angleis derived fromextras['rectangle_vertices']when present (the same source of truthsave_results_h5uses), falling back toextras['rotation_angle']then0.0.