kai.reduce.kai_util

Module Contents

Functions

kailog(directory)

makelog(directory, outfile='image_log.txt', instrument=instruments.default_inst)

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=0.0)

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=instruments.default_inst)

getPA(hdr, instrument=instruments.default_inst)

getCentralWavelength(hdr, instrument=instruments.default_inst)

calcOverhead(tint, coadds, ndithers, nframes, reads, tread=0.181)

plotKeyword(keyword1, keyword2, imgList)

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

Attributes

_nargs

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.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.