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
RayTransferObjectis aRayTransferBox, the shape of the array is(nx, ny, nz, 3). If theRayTransferObjectis aRayTransferCylinder, the shape of the array is(nr, nphi, nz, 3).- Raises:
TypeError β If the provided
rtois not a supportedRayTransferObjecttype.