lentil.field.insert#
- lentil.field.insert(field, out, intensity=False, weight=1)[source]#
Insert a field into an array.
- Parameters:
field (
Field
) – Field to insert intoout
out (ndarray) – Array to insert
field
intointensity (bool, optional) – If True, compute intensity of
field
before placing it inout
. Default is False.weight (float, optional) – Weight to apply to
field
before it is inserted intoout
- Return type:
ndarray