loop_add¶
- sunkit_image.trace.loop_add(lengths, xloop, yloop, zloop, iloop, loops)[source]¶
Adds the current loop to the output structures by interpolating the coordinates.
- Parameters:
lengths (
numpy.ndarray
) – The length of loop at every point from the starting point.xloop (
numpy.ndarray
) – Thex
coordinates of all the points of the loop.yloop (
numpy.ndarray
) – They
coordinates of all the points of the loop.zloop (
numpy.ndarray
) – The flux intensity at every point of the loop.iloop (
int
) – The current loop number.loops (
list
) – It is a list of lists which contains all the previous loops.
- Returns:
tuple
– It contains three elements: the first one is the updatedloopfile
, the second one is the updatedloops
list and the third one is the current loop number.