CONAN._classes.load_lightcurves.lc_baseline
===========================================

.. py:method:: CONAN._classes.load_lightcurves.lc_baseline(fit_offset='y', dcol0=0, dcol3=0, dcol4=0, dcol5=0, dcol6=0, dcol7=0, dcol8=0, sin='n', grp=None, grp_id=None, gp='n', re_init=False, verbose=True)

   Define baseline model parameters to fit for each light curve using the columns of the input data. `dcol0` refers to decorrelation setup for column 0, `dcol3` for column 3 and so on.
   Each baseline decorrelation parameter (dcolx) should be a list of integers specifying the polynomial order for column x for each light curve.
   e.g. Given 3 input light curves, if one wishes to fit a 2nd order trend in column 0 to the first and third lightcurves,
   then `dcol0` = [2, 0, 2].
   The decorrelation parameters depend on the columns (col) of the input light curve. Any desired array can be put in these columns to decorrelate against them.
   Note that col0 is usually the time array.

   :param fit_offset: whether or not to fit an offset to each LC
   :type fit_offset: y/n str, list (same length as file_list)
   :param dcol0: polynomial order to fit to each column. Default is 0 for all columns.
   :type dcol0: list of ints;
   :param dcol3: polynomial order to fit to each column. Default is 0 for all columns.
   :type dcol3: list of ints;
   :param dcol4: polynomial order to fit to each column. Default is 0 for all columns.
   :type dcol4: list of ints;
   :param dcol5: polynomial order to fit to each column. Default is 0 for all columns.
   :type dcol5: list of ints;
   :param dcol6: polynomial order to fit to each column. Default is 0 for all columns.
   :type dcol6: list of ints;
   :param dcol7: polynomial order to fit to each column. Default is 0 for all columns.
   :type dcol7: list of ints;
   :param dcol8: polynomial order to fit to each column. Default is 0 for all columns.
   :type dcol8: list of ints;
   :param grp_id: group the different input lightcurves by id so that different transit depths can be fitted for each group.
   :type grp_id: list (same length as file_list);
   :param gp: list containing 'y', 'n', or 'ce' to specify if a gp will be fitted to a light curve. +                'y' indicates that the george gp package will be used while 'ce' uses the celerite package.
   :type gp: list (same length as file_list);
   :param re_init: if True, re-initialize all other methods to empty. Default is False.
   :type re_init: bool;

   .. attribute:: _bases

      list of baseline model parameters for each light curve. Each element is a list of 9 integers corresponding to the polynomial order to fit to each column of the light curve.

      :type: list;

   .. attribute:: _fit_offset

      list of 'y' or 'n' for each light curve indicating if an offset is to be fitted.

      :type: list;

   .. attribute:: _groups

      list of group ids for each light curve. Default is None.

      :type: list;

   .. attribute:: _useGPphot

      list of 'n', 'ce','ge',or 'sp' for each light curve indicating if a GP is to be fitted.

      :type: list;

   .. attribute:: _gp_lcs

      list of lightcurve filenames for which a GP is to be fitted.

      :type: list;

