potpyri.instruments.IMACS

IMACS/Magellan instrument configuration and reduction parameters.

Classes

IMACS()

IMACS at Magellan: optical imaging with bias and flat calibration.

class potpyri.instruments.IMACS.IMACS[source]

Bases: Instrument

IMACS at Magellan: optical imaging with bias and flat calibration.

get_ampl(hdr)[source]

Return amplifier identifier from header as string.

get_filter(hdr)[source]

Return filter name from header; leading segment before underscore.

get_number(hdr)[source]
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

raw_format(proc)[source]

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