extract_data_pyoof¶
-
pyoof.extract_data_pyoof(pathfits)[source] [edit on github]¶ Extracts data from the
pyoofdefault fits file OOF holography observations, ready to use for the least squares minimization (seefit_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 OOFandPLUS 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 :
strPath to the fits file that contains the three beam maps pre-calibrated, using the correct PrimaryHDU and the three BinTableHDU (
MINUS OOF,ZERO OOFandPLUS OOF).Returns: data_info :
listIt 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 :
listIt 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_datais the three beam observations, minus, zero and plus out-of-focus, in a flat array.u_dataandv_dataare the beam axes in a flat array.