cosmax.interpolation package
Submodules
cosmax.interpolation.bilinear module
- cosmax.interpolation.bilinear.bilinear_interp(pos: Array, scalar_field: Array) Array
Bilinear interpolation of a scalar field.
Returns values of a scalar field at a given position using bilinear interpolation. Periodic boundary conditions are used.
- Parameters:
pos – position to interpolate
scalar_field – scalar field
- Returns:
The interpolated value