cherab.nagdis.inversion.utils.get_voxel_centersΒΆ

cherab.nagdis.inversion.utils.get_voxel_centers(rto: RayTransferObject) ndarraySourceΒΆ

Get the voxel center coordinates for a RayTransferObject.

Parameters:
rto: RayTransferObjectΒΆ

The RayTransferObject for which to get the voxel centers.

Returns:

ndarray – The voxel center coordinates. If the RayTransferObject is a RayTransferBox, the shape of the array is (nx, ny, nz, 3). If the RayTransferObject is a RayTransferCylinder, the shape of the array is (nr, nphi, nz, 3).

Raises:

TypeError – If the provided rto is not a supported RayTransferObject type.