potpyri.instruments.FOURSTAR

FourStar/Magellan instrument configuration and reduction parameters.

Classes

FOURSTAR()

FourStar at Magellan: NIR imaging with flat calibration.

class potpyri.instruments.FOURSTAR.FOURSTAR[source]

Bases: Instrument

FourStar at Magellan: NIR imaging with flat calibration.

get_gain(hdr)[source]

Return gain value(s) for the detector/amplifier.

Parameters:

hdr (astropy.io.fits.Header) – FITS header (may be used in subclasses for amp-dependent values).

Returns:

Gain in e-/ADU.

Return type:

float or list

get_number(hdr)[source]
get_rdnoise(hdr)[source]

Return read noise value(s) for the detector/amplifier.

Parameters:

hdr (astropy.io.fits.Header) – FITS header (may be used in subclasses for amp-dependent values).

Returns:

Read noise in electrons.

Return type:

float or list

get_time(hdr)[source]

Return MJD from header (mjd_keyword) as float.

import_image(filename, amp, log=None)[source]

Load raw multi-extension FITS and return processed CCDData (bias/overscan/trim/gain).

Parameters:
  • filename (str) – Path to raw FITS file.

  • amp (str) – Amplifier identifier (number of extensions).

  • log (ColoredLogger, optional) – Logger for progress.

Returns:

Processed frame in electrons (single combined image).

Return type:

ccdproc.CCDData

measure_slope(hdu)[source]
raw_format(proc)[source]

Return glob pattern for raw files (e.g. ‘sci_img_*.fits’ or ‘sci_img*[!proc].fits’).