discretize.TreeMesh.cell_centers_z

property TreeMesh.cell_centers_z

Return z-coordinates of the cell centers along the z-direction

For 3D meshes, this property returns a 1D vector containing the z-coordinate values of the cell centers along the z-direction. For instances of TensorMesh or CylindricalMesh, this is equivalent to the cell center positions which define the tensor along the z-axis. For instances of TreeMesh however, this property returns the z-coordinate values of the cell centers along the z-direction for the underlying tensor mesh .

Returns
(n_cells_z) numpy.ndarray of float or None

A 1D array containing the z-coordinates of the cell centers along the z-direction. Returns None for 1D and 2D meshes.