Mapper#
- class cherab.lhd.emc3.cython.mapper.Mapper#
Bases:
Function3DMapping data array to function retuning its index value.
This instance is callable function returning the element of 1-D
dataarray, the index of which is given by a Index function defined in 3-D space.If the index function returns an integer which is out of bounds or negative, an instance returns a default value defined by
default_value.- Parameters:
- index_func
callable()[[float,float,float],int] Callable returning a index integer.
- data(
N, ) array_like An 1D array of data.
- default_value
float,optional The value to return outside the data size limits, by default 0.0.
- index_func
Methods
Evaluate the function f(x, y, z)
inside_grids(x, y, z)Mask function returning True if Point (x, y, z) in any grids, otherwise False.