nenupytf.process.fits_conversion

fits_conversion

nenupytf.process.fits_conversion.get_bst_metadata(tfrepo)[source]

In order to understand a TF observation, one must refer to the corresponding BST file where all relevant meta-data are stored. This method searches for the corresponding BST file, assuming the path to the BST repository is the same as the one containing TF data but for the ‘nenufar’ key intstead of ‘nenufar-tf’. This is how data are stored in nancep.

Parameters:tfrepo (str) – Absolute or relative path of the TF data.
Returns:metadata – Dictionnary of metadata as they are stored in the BST fits file.
Return type:dict
nenupytf.process.fits_conversion.to_fits(specdata)[source]