get_model_from_cache

sofia_redux.instruments.forcast.getmodel.get_model_from_cache(modelfile, resolution)[source]

Retrieves model data from the model 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:
modelfilestr

File path to the model file.

resolutionfloat

Spectral resolution used for smoothing.

Returns:
filename, wave, unsmoothed, smoothed
filenamestr

Used to update ATRNFILE in FITS headers.

wavenumpy.ndarray

(nwave,) array of wavelengths.

unsmoothednumpy.ndarray

(nwave,) array containing the model data from file

smoothednumpy.ndarray

(nwave,) array containing the smoothed model data