get_spatial_from_cache¶
- sofia_redux.instruments.fifi_ls.spatial_calibrate.get_spatial_from_cache(spatialfile, obsdate)[source]¶
Retrieves spatial data from the spatial 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:
- spatialfilestr
File path to the spatial file
- obsdateint
Observation date
- Returns:
- arg1, arg2
- arg1str or dict
If reading an offsets file,
arg1will be the filename. If reading a coefficients file,arg1will be a dictionary of coefficients.- arg2numpy.ndarray or dict
If reading an offsets file,
arg2will be an array of offsets. If reading a coefficients file,arg2will be a dictionary of secondary coefficients.