get_badpix_from_cache

sofia_redux.instruments.fifi_ls.get_badpix.get_badpix_from_cache(badpixfile)[source]

Retrieves bad pixel masks or default file from the badpix 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:
badpixfilestr

File path to the badpix file

Returns:
badpixnumpy.ndarray or pandas.DataFrame

Bad pixel mask or defaults table