get_coefficients

sofia_redux.instruments.forcast.imgnonlin.get_coefficients(header, camcap, update=False)[source]

Get non-linearity coefficients from the header based on camera and capacitance

Parameters:
headerastropy.io.fits.header.Header
camcapstr

camera + 2-letter-capacitance, e.g., SWCHI, LWCLO, etc.

updatebool, optional

If True, update the header with the coefficients. keys will be NLINC# where # represents a number. The NLC + camap key will also be removed as it does not fit in the line. A HISTORY message will also be appended stating the read coefficients

Returns:
numpy.ndarray

float coefficient values from header