store_flat_in_cache

sofia_redux.instruments.fifi_ls.apply_static_flat.store_flat_in_cache(specfile, spatfile, obsdate, filename, spat_flat, spec_flat, spec_wave, spec_err)[source]

Store flat data in the flat cache.

Parameters:
specfilestr

File path to the spectral flat file

spatfilestr:

File path to the spatial flat file

filenamestr

Used to update FLATFILE in FITS headers

spat_flatnumpy.ndarray

Spatial flat (nwave, nspaxel, nspexel)

spec_flatnumpy.ndarray

Spectral flat (nwave, nspaxel, nspexel)

spec_wavenumpy.ndarray

Spectral wavelengths (nwave)

spec_errnumpy.ndarray

Error at each wavelength (nwave)

Returns:
None