potpyri.instruments.GMOS
GMOS/Gemini instrument configuration and reduction parameters.
Classes
|
GMOS at Gemini: optical imaging with bias and flat calibration. |
- class potpyri.instruments.GMOS.GMOS[source]
Bases:
InstrumentGMOS at Gemini: optical imaging with bias and flat calibration.
- get_ampl(hdr)[source]
Return amplifier identifier from header as string.
- get_catalog(hdr)[source]
Return catalog name for zeropoint (e.g. ‘PS1’).
- 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:
floatorlist
- get_instrument_name(hdr)[source]
Return instrument name (lowercase) for paths/filenames.
- 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:
floatorlist
- 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
- needs_sky_subtraction(filt)[source]
Return True if sky subtraction should be run for this filter.
- Parameters:
filt (
str) – Filter name (e.g. ‘r’, ‘J’).- Returns:
True for NIR wavelength instruments, False otherwise.
- Return type:
bool
- raw_format(proc)[source]
Return glob pattern for raw files (e.g. ‘sci_img_*.fits’ or ‘sci_img*[!proc].fits’).