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

.. toctree::
   :hidden:

   /autoapi/CONAN/_classes/load_lightcurves.add_GP
   /autoapi/CONAN/_classes/load_lightcurves.add_custom_LC_function
   /autoapi/CONAN/_classes/load_lightcurves.add_sinusoid
   /autoapi/CONAN/_classes/load_lightcurves.add_spline
   /autoapi/CONAN/_classes/load_lightcurves.clip_outliers
   /autoapi/CONAN/_classes/load_lightcurves.contamination_factors
   /autoapi/CONAN/_classes/load_lightcurves.detrend_data
   /autoapi/CONAN/_classes/load_lightcurves.get_LDs
   /autoapi/CONAN/_classes/load_lightcurves.get_decorr
   /autoapi/CONAN/_classes/load_lightcurves.lc_baseline
   /autoapi/CONAN/_classes/load_lightcurves.limb_darkening
   /autoapi/CONAN/_classes/load_lightcurves.mask_points
   /autoapi/CONAN/_classes/load_lightcurves.phasecurve
   /autoapi/CONAN/_classes/load_lightcurves.planet_parameters
   /autoapi/CONAN/_classes/load_lightcurves.plot
   /autoapi/CONAN/_classes/load_lightcurves.print
   /autoapi/CONAN/_classes/load_lightcurves.rescale_data_columns
   /autoapi/CONAN/_classes/load_lightcurves.save_LCs
   /autoapi/CONAN/_classes/load_lightcurves.supersample
   /autoapi/CONAN/_classes/load_lightcurves.transit_depth_variation
   /autoapi/CONAN/_classes/load_lightcurves.transit_timing_variation
   /autoapi/CONAN/_classes/load_lightcurves.update_planet_parameters

.. py:class:: CONAN._classes.load_lightcurves(file_list=None, data_filepath=None, input_lc=None, filters=None, wl=None, nplanet=1, sort=False, verbose=True, show_guide=False, lamdas=None)

   lightcurve object to hold lightcurves for analysis

   :param file_list: List of filenames for the lightcurves. Files must have 9 columns: time,flux,err,xc,xc,xc,xc,xc,xc.
                     where xc are columns that can be used in decorrelating the flux. Arrays of zeroes are put in xc if
                     file contains less than 9 columns.
   :type file_list: list;
   :param data_filepath: Filepath where lightcurves files are located. Default is None which implies the data is
                         in the current working directory.
   :type data_filepath: str;
   :param input_lc: dictionary of input lightcurves. If provided, it overrides the file_list and data_filepath parameters.
                    Each key is the name of the lightcurve and the value is a numpy array with the lightcurve data.
                    The array must be of shape (N,M) where N is the number of data points and M is the number of columns (>=3).
   :type input_lc: dict;
   :param filter: filter for each lightcurve in file_list. if a str is given, it is used for all lightcurves,
                  if None, the default of "V" is used for all.
   :type filter: list, str, None;
   :param wl: central wavelength in microns for each lightcurve in file_list. This is only used for plotting
              transit depth or occultation depth variation as a function of wl. If int or float is given,
              it is used for all lightcurves. If None, the default of 0.6 is used for all if same filter,
              or unique random value per filter.
   :type wl: list, int, float, None;
   :param nplanet: number of planets in the system. Default is 1.
   :type nplanet: int;
   :param sort: if True, sorts the lightcurves based on the median time. Default is False.
   :type sort: bool;
   :param verbose: if True, prints out information about the lightcurves. Default is True.
   :type verbose: bool;

   :returns: **lc_obj**
   :rtype: light curve object

   .. attribute:: _obj_type

      type of object created.

      :type: str;

   .. attribute:: _nplanet

      number of planets in the system.

      :type: int;

   .. attribute:: _fpath

      filepath where lightcurves files are located.

      :type: str;

   .. attribute:: _names

      list of filenames for the lightcurves.

      :type: list;

   .. attribute:: _nphot

      number of lightcurves.

      :type: int;

   .. attribute:: _filters

      list of filters for each lightcurve.

      :type: list;

   .. attribute:: _wl

      list of central wavelengths for each lightcurve.

      :type: list;

   .. attribute:: _filter_shortcuts

      dictionary of filter shortcuts.

      :type: dict;

   .. attribute:: _filnames

      list of unique filters.

      :type: list;

   .. attribute:: _input_lc

      dictionary of the input lightcurves.

      :type: dict;

   .. attribute:: _rms_estimate

      list of rms estimates for each lightcurve.

      :type: list;

   .. attribute:: _jitt_estimate

      list of jitter estimates for each lightcurve.

      :type: list;

   .. rubric:: Examples

   >>> lc_obj = load_lightcurves(file_list = ["lc1.dat","lc2.dat"],
   >>>                             filters = ["V","I"],
   >>>                                  wl = [0.6,0.8] )


   .. py:attribute:: _bases_init


   .. py:attribute:: _clipped_data


   .. py:attribute:: _detrended
      :value: False



   .. py:attribute:: _filnames


   .. py:attribute:: _filter_shortcuts


   .. py:attribute:: _fpath


   .. py:attribute:: _input_lc


   .. py:attribute:: _masked_points
      :value: False



   .. py:attribute:: _nphot


   .. py:attribute:: _nplanet
      :value: 1



   .. py:attribute:: _obj_type
      :value: 'lc_obj'



   .. py:attribute:: _rescaled_data


   .. py:attribute:: _show_guide
      :value: False


Methods
-------

.. autoapisummary::

   CONAN._classes.load_lightcurves.add_GP
   CONAN._classes.load_lightcurves.add_custom_LC_function
   CONAN._classes.load_lightcurves.add_sinusoid
   CONAN._classes.load_lightcurves.add_spline
   CONAN._classes.load_lightcurves.clip_outliers
   CONAN._classes.load_lightcurves.contamination_factors
   CONAN._classes.load_lightcurves.detrend_data
   CONAN._classes.load_lightcurves.get_LDs
   CONAN._classes.load_lightcurves.get_decorr
   CONAN._classes.load_lightcurves.lc_baseline
   CONAN._classes.load_lightcurves.limb_darkening
   CONAN._classes.load_lightcurves.mask_points
   CONAN._classes.load_lightcurves.phasecurve
   CONAN._classes.load_lightcurves.planet_parameters
   CONAN._classes.load_lightcurves.plot
   CONAN._classes.load_lightcurves.print
   CONAN._classes.load_lightcurves.rescale_data_columns
   CONAN._classes.load_lightcurves.save_LCs
   CONAN._classes.load_lightcurves.supersample
   CONAN._classes.load_lightcurves.transit_depth_variation
   CONAN._classes.load_lightcurves.transit_timing_variation
   CONAN._classes.load_lightcurves.update_planet_parameters


