rockverse.voxel_image.VoxelImage.get_voxel_coordinates#
- VoxelImage.get_voxel_coordinates(i, j, k)[source]#
Get the spatial coordinates of the voxel at a given position.
This method calculates the spatial coordinates of the voxel located at the specified (i, j, k) position, taking into account the voxel origin and voxel length.
- Parameters:
i (int) – The voxel index in the x-direction, 0 <= i < nx.
j (int) – The voxel index in the y-direction, 0 <= j < ny.
k (int) – The voxel index in the z-direction, 0 <= k < nz.
- Returns:
A tuple containing the spatial coordinates (x, y, z) of the specified voxel.
- Return type:
tuple