get_atran_from_cache

sofia_redux.instruments.exes.get_atran.get_atran_from_cache(atranfile, resolution)[source]

Retrieves atmospheric transmission data from the atran cache.

Checks to see if the file still exists, can be read, and has not been altered since last time. If the file has changed, it will be deleted from the cache so that it can be re-read.

Parameters:
atranfilestr

File path to the atran file

resolutionfloat

Spectral resolution used for smoothing.

Returns:
tuple
filenamestr

Used to update ATRNFILE in FITS headers.

wavenumpy.ndarray

(nwave,) array of wavelengths.

unsmoothednumpy.ndarray

2D array containing the atran data from file

smoothednumpy.ndarray

(nwave,) array containing the smoothed atran data