potpyri.instruments.LRIS
LRIS/Keck instrument configuration and reduction parameters.
Classes
|
LRIS at Keck: optical imaging with bias and flat calibration. |
- class potpyri.instruments.LRIS.LRIS[source]
Bases:
InstrumentLRIS at Keck: optical imaging with bias and flat calibration.
- get_1R_datasec(amp, binning=1)[source]
- get_2R_datasec(amp, binning=1)[source]
- get_ampl(hdr)[source]
Return amplifier identifier from header as string.
- get_binning(header)[source]
Return binning string from header (e.g. ‘11’, ‘22’), normalized and no ‘x’.
- get_exptime(hdr)[source]
Return exposure time from header (exptime_keyword).
- get_filter(hdr)[source]
Return filter name from header; leading segment before underscore.
- 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(header)[source]
- get_overscan(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
- raw_format(proc)[source]
Return glob pattern for raw files (e.g. ‘sci_img_*.fits’ or ‘sci_img*[!proc].fits’).