Structure of the outputs

There are two different ways to get access to the data extracted from the images: from the Data object or from the files that are written to the disk, with the store_data() function.

In memory

In order to access the data in memory, one can refer to the Data documentation and Data, thus being able to find all that is necessary.

In Disk

There are two possible ways of storing data on disk: we either store data as a text file, whose structure does not allow for proper organization of the data, or a fits file. We shall now look into the structure of each one of them.

Text file

export_txt(Data_fits, path, **kwargs)
Stores the light curves on a text file with the following format:
MJD_TIME;ROLL_ANGLE FLux <Star i> FLUX_ERR <Star i>
Parameters:
  • Data_fitsData object.
  • path – Path in which the file shall be stored
  • kwargs – Configuration values

Fits file

create_fits(master_folder, data_fits, **kwargs)
Export the results to a fits file, containing the light curves and a correspondence of star to Cv and
respective radius factor.
Parameters:
  • master_folder – Path in which the data shall be stored
  • data_fitsData object.
  • kwargs

Notes

Data stored in the header unit of the file :

Keyword data

method type of mask used detect tracking method initial initial detection method grid size of the background grid CDPP_TYPE CDPP algorithm in use

In the data unit of the file, we have each star, with the corresponding
time, rotation angle, flux values and uncertainties