kai.instruments

Module Contents

Classes

Instrument

NIRC2

OSIRIS

OSIRIS Imager - after 2019

Attributes

module_dir

default_inst

kai.instruments.module_dir[source]
class kai.instruments.Instrument[source]

Bases: object

get_bad_pixel_mask_name(self)[source]
get_filter_name(self, hdr)[source]
get_plate_scale(self, hdr)[source]
get_position_angle(self, hdr)[source]
get_parallactic_angle(self, hdr)[source]
get_instrument_angle(self, hdr)[source]
get_central_wavelength(self, hdr)[source]
get_gain(self, hdr)[source]
make_filenames(self, files, rootDir='', prefix='n')[source]
get_distortion_maps(self, date)[source]
get_align_type(self, errors=False)[source]
get_saturation_level(self)[source]
class kai.instruments.NIRC2[source]

Bases: Instrument

get_filter_name(self, hdr)[source]
get_plate_scale(self, hdr)[source]

Return the plate scale in arcsec/pixel.

get_position_angle(self, hdr)[source]

Get the sky PA in degrees East of North.

get_parallactic_angle(self, hdr)[source]

Get the parallactic angle in degrees East of North

get_instrument_angle(self, hdr)[source]
get_central_wavelength(self, hdr)[source]

Return the central wavelength of the filter for this observation in microns.

get_gain(self, hdr)[source]
make_filenames(self, files, rootDir='', prefix='n')[source]
get_distortion_maps(self, hdr)[source]
get_align_type(self, hdr, errors=False)[source]
get_saturation_level(self)[source]

Set to the 95% saturation threshold in DN.

class kai.instruments.OSIRIS[source]

Bases: Instrument

OSIRIS Imager - after 2019

get_filter_name(self, hdr)[source]
get_plate_scale(self, hdr)[source]

Return the plate scale in arcsec/pix.

get_position_angle(self, hdr)[source]

Get the sky PA in degrees East of North.

get_instrument_angle(self, hdr)[source]

Get the angle of the instrument w.r.t. to the telescope or AO bench in degrees.

get_parallactic_angle(self, hdr)[source]

Get the parallactic angle in degrees East of North

get_central_wavelength(self, hdr)[source]

Return the central wavelength of the filter for this observation in microns.

get_gain(self, hdr)[source]
make_filenames(self, files, rootDir='', prefix='')[source]
flip_images(self, files, rootDir='')[source]

Flip images (as they come from the detector flipped) and subtract reference pixels.

subtract_reference_pixels(self, img)[source]
get_distortion_maps(self, hdr)[source]
get_align_type(self, hdr, errors=False)[source]
get_saturation_level(self)[source]

Set to the 95% saturation threshold in DN.

kai.instruments.default_inst[source]