extract_data_pyoof

pyoof.extract_data_pyoof(pathfits)[source] [edit on github]

Extracts data from the pyoof default fits file OOF holography observations, ready to use for the least squares minimization (see fit_beam). The fits file has to have the following keys on its PrimaryHDU header: 'FREQ', 'WAVEL', 'MEANEL', 'OBJECT' and 'DATE_OBS'. Besides this three BinTableHDU are required for the data itself; MINUS OOF, ZERO OOF and PLUS OOF. The BinTableHDU header has to have the 'DZ' key which includes the radial offset, \(d_z\). Finally the BinTableHDU has the data files 'U', 'V' and 'BEAM', which is the \(x\)- and \(y\)-axis position in radians and the 'BEAM' in a flat array, in mJy.

Parameters:

pathfits : str

Path to the fits file that contains the three beam maps pre-calibrated, using the correct PrimaryHDU and the three BinTableHDU (MINUS OOF, ZERO OOF and PLUS OOF).

Returns:

data_info : list

It contains all extra data besides the beam map. The output corresponds to a list, [name, pthto, obs_object, obs_date, freq, wavel, d_z, meanel]. These are, name of the fits file, paht of the fits file, observed object, observation date, frequency, wavelength, radial offset and mean elevation, respectively.

data_obs : list

It contains beam maps and \(x\)-, and \(y\)-axis (\(uv\)-plane in Fourier space) data for the least squares minimization (see fit_beam). The list has the following order [beam_data, u_data, v_data]. beam_data is the three beam observations, minus, zero and plus out-of-focus, in a flat array. u_data and v_data are the beam axes in a flat array.