Reconstruct the IFU
Error when the name and/or number fiber extracted file names is not correct
Errors for wrong combinations of input parameters in ReconstructedIFU or from_files()
Error for miss-matching the number of fibers in the ifu center files and the fiber extracted ones
Reconstructed IFU head image from the fiber extracted frames given the ifu_center and the dither.
Parameters: | ifu_center : instance of IFUCenter
dither : instance child of _BaseDither
fextract : None or list of fits files, optional
fe_prefix : string, optional
|
---|---|
Raises: | ReconstructValueError
ReconstructIOError
RecontructIndexError
|
Attributes
ifu_center | |
dither | |
x, y | (1-dimensional arrays) x and y position of the fibers |
flux | (list of 2-dimensional arrays) each element is the content of one fiber extracted file |
header | (list of dictionaries) each element contains the CRVAL1 and CDELT1 keywords :value pairs from the headers of the fiber extracted files; used to determine the wavelength range in reconstruct() |
Organize the fiber extracted file names into a dictionary
Parameters: | fextract : None or list of string
|
---|---|
Returns: | dfextract : dict
|
Read the fiber extracted files and creates a set of three lists for x, y and flux.
Parameters: | dfextract : dictionary
|
---|
Read and parse the file
Parameters: | ifu_center_file : string
dither_file : string, optional
fextract : None or list of fits files, optional
fe_prefix : string, optional
|
---|---|
Raises: | ReconstructValueError
ReconstructValueError, ReconstructIOError
|
Notes
if dither_file is None, fextract must contain a number of files equal to the number of channels (2)
Returns the reconstructed IFU with the flux computed between [wmin, wmax]
Parameters: | wmin, wmax : float, optional
|
---|---|
Returns: | x, y : 1d arrays
flux : 1d array
|