CONAN.get_files.get_CHEOPS_data.download
========================================

.. py:method:: CONAN.get_files.get_CHEOPS_data.download(file_keys='all', aperture='DEFAULT', force_download=False, get_metadata=True, decontaminate=True, reject_highpoints=True, bg_MAD_reject=3, outlier_clip=4, outlier_window_width=11, outlier_clip_niter=1, normalize=True, merge_lcs=False, kwargs=None, verbose=True)

   Download CHEOPS light curves from the cheops database using the dace_query package

   :param file_keys: List of file keys to download. if "all" is given, all file_keys shown in `.search()` result will be downloaded.
   :type file_keys: list of str
   :param aperture: Aperture to use for the light curve. Default is "DEFAULT". The options are: "R15","R16",...,"R40","RINF","RSUP".
   :type aperture: str
   :param force_download: Force download the light curve even if it has been downloaded before. Default is False.
   :type force_download: bool
   :param get_metadata: get metadata for the lc. this includes telescope tube temperature which may be used in decorrelation.
   :type get_metadata: bool
   :param decontaminate: Decontaminate the light curve. Default is True.
   :type decontaminate: bool
   :param reject_highpoints: Reject high points in the light curve. Default is True.
   :type reject_highpoints: bool
   :param bg_MAD_reject: Number of median absolute deviations to reject high background points. Default is 3.
   :type bg_MAD_reject: float
   :param outlier_clip: Number of standard deviations to clip outliers. Default is 4.
   :type outlier_clip: float
   :param outlier_window_width: Window width to use for clipping outliers. Default is 11.
   :type outlier_window_width: int
   :param outlier_clip_niter: Number of iterations to clip outliers. Default is 1.
   :type outlier_clip_niter: int
   :param normalize: Normalize the light curve flux. Default is True.
   :type normalize: bool
   :param merge_lcs: Merge light curves from different visits into a single light curve. The resulting light curve is normalized to the
                     median of the first lightcurve if `normalize` is True. Default is False.
   :type merge_lcs: bool
   :param kwargs: Additional keyword arguments to the `get_lightcurve()` function of pycheops.Dataset. e.g
                  kwargs = dict(saa_max=0, temp_max=0, earth_max=1, moon_max=0, sun_max=0, cr_max=2)
   :type kwargs: dict
   :param verbose: Verbose output. Default is True.
   :type verbose: bool

