The Sip class performs polynomial distortion correction using the SIP convention in both directions.
Shupe, D. L., M. Moshir, J. Li, D. Makovoz and R. Narron. 2005. “The SIP Convention for Representing Distortion in FITS Image Headers.” ADASS XIV.
sip_foc2pix(foccrd, origin) -> double array[ncoord][nelem]
Convert focal plane coordinates to pixel coordinates using the SIP polynomial distortion convention.
Returns an array of pixel coordinates.
Exceptions:
sip_pix2foc(pixcrd, origin) -> double array[ncoord][nelem]
Convert pixel coordinates to focal plane coordinates using the SIP polynomial distortion convention.
Returns an array of focal plane coordinates.
Exceptions:
double array[a_order+1][a_order+1]
The SIP A_i_j matrix used for pixel to focal plane transformation.
Its values may be changed in place, but it may not be resized, without creating a new Sip object.
double array[ap_order+1][ap_order+1]
The SIP AP_i_j matrix used for focal plane to pixel transformation. Its values may be changed in place, but it may not be resized, without creating a new Sip object.
int (read-only)
The order of the polynomial in the SIP AP_i_j array (AP_ORDER). list of strings[naxis]
List of CTYPEia keyvalues.
The ctype keyword values must be in upper case and there must be zero or one pair of matched celestial axis types, and zero or one spectral axis.
double array[b_order+1][b_order+1]
The SIP B_i_j matrix used for pixel to focal plane transformation. Its values may be changed in place, but it may not be resized, without creating a new Sip object.
double array[bp_order+1][bp_order+1]
The SIP BP_i_j matrix used for focal plane to pixel transformation. Its values may be changed in place, but it may not be resized, without creating a new Sip object.
int (read-only)
The order of the polynomial in the SIP BP_i_j array (BP_ORDER). int (read-only)
EXTLEV identifying the binary table extension.
double array[naxis]
Coordinate reference pixels (CRPIXja) for each pixel axis.