lightkurve.KeplerTargetPixelFile.get_coordinates#

KeplerTargetPixelFile.get_coordinates(cadence='all')#

Returns two 3D arrays of RA and Dec values in decimal degrees.

If cadence number is given, returns 2D arrays for that cadence. If cadence is ‘all’ returns one RA, Dec value for each pixel in every cadence. Uses the WCS solution and the POS_CORR data from TPF header.

Parameters
cadence‘all’ or int

Which cadences to return the RA Dec coordinates for.

Returns
ranumpy array, same shape as tpf.flux[cadence]

Array containing RA values for every pixel, for every cadence.

decnumpy array, same shape as tpf.flux[cadence]

Array containing Dec values for every pixel, for every cadence.