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) – The x coordinates of all the points of the loop.

  • yloop (numpy.ndarray) – The y 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 updated loopfile, the second one is the updated loops list and the third one is the current loop number.