kai.reduce.calibrate

Attributes

all_scales

Classes

IndentedHelpFormatterWithNL

Format help with indented section bodies.

Starlist

Use this to keep all the lists associated with

Functions

main([argv])

read_command_line(argv)

read_photo_calib_file(options[, verbose])

input_data(options)

Read in a starlist and return a starlist object

find_cal_stars(calibs, stars, options)

Returns an array of indices which holds the index of the

calc_zeropt(calibs, stars, options)

Calculate the average zeropoints from all the

output_new(zeropt, zeropt_err, calibs, stars, options)

Write out a calibrated starlist and a *.zer file with

get_camera_type(fitsfile)

Helper class to get the calibrate camera type from the

Module Contents

kai.reduce.calibrate.all_scales = [[1.0, 'No scaling'], [0.0102, 'Speckle'], [0.0087, 'KCAM-AO'], [0.0085, 'SCAM-AO'], [0.00993,...[source]
class kai.reduce.calibrate.IndentedHelpFormatterWithNL(indent_increment=2, max_help_position=24, width=None, short_first=1)[source]

Bases: optparse.IndentedHelpFormatter

Format help with indented section bodies.

format_description(description)[source]
format_option(option)[source]
kai.reduce.calibrate.main(argv=None)[source]
kai.reduce.calibrate.read_command_line(argv)[source]
kai.reduce.calibrate.read_photo_calib_file(options, verbose=False)[source]
kai.reduce.calibrate.input_data(options)[source]

Read in a starlist and return a starlist object with the following hanging off:

name mag epoch x y xerr (none for starfinder starlists) yerr (none for starfinder starlists) snr corr nframes fwhm

kai.reduce.calibrate.find_cal_stars(calibs, stars, options)[source]

Returns an array of indices which holds the index of the matching star in the starlist. Non-matches have an index of -1.

kai.reduce.calibrate.calc_zeropt(calibs, stars, options)[source]

Calculate the average zeropoints from all the calibrator stars specified by the user (or defaults). Recall that not all calibrators in our list will be used for the calibration… only those with both include = True and found in the starlist.

kai.reduce.calibrate.output_new(zeropt, zeropt_err, calibs, stars, options)[source]

Write out a calibrated starlist and a *.zer file with the calculated zeropoints.

kai.reduce.calibrate.get_camera_type(fitsfile)[source]

Helper class to get the calibrate camera type from the FITS header.

class kai.reduce.calibrate.Starlist[source]

Bases: object

Use this to keep all the lists associated with our input starlist.