Fast Imaging Solar Spectrograph

Examples


alignOffset and shiftImage

View


function fisspy.align.base.alignOffset(image0, template0, cor=None)

Description: Calculate the align offset between two images using the corss-correlation.

Parameters

  • image0 (numpy.ndarray) - Images for coalignment with the template. Two dimensional array.
  • template0 (numpy.ndarray) - The reference image for coalignment. Two dimensional array.
  • cor (bool, optional) - If True, return the correlation between template0 and result.

Returns

  • sh (numpy.ndarray) - Shifted value of the image0. ex) np.array([yshift, xshift])

Notes

This code is based on the IDL code ALIGNOFFSET.PRO written by J.Chae.



function fisspy.align.base.shiftImage(image, sh, missing=0, cubic=False)

Description: Shift the given image.

Parameters

  • image (numpy.ndarray) - Two dimensional array.
  • sh (numpy.ndarray, tuple or list) - Shifting value set (y, x).
  • missing (float, optional) - The value of extrapolated position. If -1, extrapolate the outer region. Default is 0.
  • cubic (bool, optional) - Whether cubic or linear interpolation. Default is False

Returns

  • simage (numpy.ndarray) - Shifted image

Back to home