kai.reduce.kai_util

Attributes

_nargs

Functions

kailog(directory)

makelog(directory[, outfile, instrument])

Make an electronic log for all the FITS files in the

getAotsxy(hdr)

pix2radec()

radec2pix(radec, phi, scale, posRef)

Determine pixel shifts from true RA and Dec positions.

aotsxy2pix(aotsxy, scale, aotsxyRef[, inst_angle])

pcuxy2pix(pcuxy, phi, scale, pcuxyRef)

Determine pixel shifts from true RA and Dec positions.

pix2xyarcsec(xypix, phi, scale, sgra)

Determine E and N offsets from Sgr A* (in arcsec) from

xyarcsec2pix(xyarcsec, phi, scale)

Determine pixel shifts from E and N offsets from Sgr A*.

rotate_coo(x, y, phi)

Rotate the coordinates in the *.coo files for data sets

getScale(hdr[, instrument])

getPA(hdr[, instrument])

getCentralWavelength(hdr[, instrument])

calcOverhead(tint, coadds, ndithers, nframes, reads[, ...])

plotKeyword(keyword1, keyword2, imgList)

Pass in a file containing a list of images. For each of these

Module Contents

kai.reduce.kai_util.kailog(directory)[source]
kai.reduce.kai_util.makelog(directory, outfile='image_log.txt', instrument=instruments.default_inst)[source]

Make an electronic log for all the FITS files in the specified directory.

kai.reduce.kai_util._nargs[source]
kai.reduce.kai_util.getAotsxy(hdr)[source]
kai.reduce.kai_util.pix2radec()[source]
kai.reduce.kai_util.radec2pix(radec, phi, scale, posRef)[source]

Determine pixel shifts from true RA and Dec positions.

@param radec: a 2-element list containing the RA and Dec in degrees. @type radec: float list @param phi: position angle (E of N) in degrees. @type phi: float @param scale: arcsec per pixel. @type scale: float @param posRef: 2-element list containing the ra, dec positions (in degrees)

of a reference object.

@type posRef: float list

kai.reduce.kai_util.aotsxy2pix(aotsxy, scale, aotsxyRef, inst_angle=0.0)[source]
kai.reduce.kai_util.pcuxy2pix(pcuxy, phi, scale, pcuxyRef)[source]

Determine pixel shifts from true RA and Dec positions.

@param pcuxy: a 2-element list containing the PCU x and y in mm. @type pcuxy: float list @param phi: position angle (E of N) in degrees. @type phi: float @param scale: mm per pixel. @type scale: float @param pcuxyRef: 2-element list containing the PCU x, y positions (in mm) in the reference position. @type pcuxyRef: float list

kai.reduce.kai_util.pix2xyarcsec(xypix, phi, scale, sgra)[source]

Determine E and N offsets from Sgr A* (in arcsec) from pixel positions and the pixel position of Sgr A*.

xypix: 2-element list containing the RA and Dec in degrees. phi: position angle (E of N) in degrees. scale: arcsec per pixel. sgra: 2-element list containing the pixel position of Sgr A*.

kai.reduce.kai_util.xyarcsec2pix(xyarcsec, phi, scale)[source]

Determine pixel shifts from E and N offsets from Sgr A*.

xyarcsec: 2-element list containing the RA and Dec in degrees. phi: position angle (E of N) in degrees. scale: arcsec per pixel.

kai.reduce.kai_util.rotate_coo(x, y, phi)[source]

Rotate the coordinates in the *.coo files for data sets containing images at different PAs.

kai.reduce.kai_util.getScale(hdr, instrument=instruments.default_inst)[source]
kai.reduce.kai_util.getPA(hdr, instrument=instruments.default_inst)[source]
kai.reduce.kai_util.getCentralWavelength(hdr, instrument=instruments.default_inst)[source]
kai.reduce.kai_util.calcOverhead(tint, coadds, ndithers, nframes, reads, tread=0.181)[source]
kai.reduce.kai_util.plotKeyword(keyword1, keyword2, imgList)[source]

Pass in a file containing a list of images. For each of these images, read out the values of the header keywords specified. Then plot each of the keywords against each other.