ekaterinailin / AltaiPony

Find flares in Kepler and TESS light curves. Notebooks for quickstart inside.
https://altaipony.readthedocs.io
MIT License
26 stars 10 forks source link

Add option to download all campaigns/ quarters/sectors for a target #51

Closed ekaterinailin closed 4 years ago

ekaterinailin commented 4 years ago

What needs to be created or improved?

lcio.from_mast should return a list of FLCs if c is not specified, or at least give a list of available cs. Currently, only the first LC is returned.

Can you provide an example?

flc = from_mast(3863594, mission="Kepler", mode="LC", c=None)

Warning: 3863594 may refer to a different Kepler or TESS target. Please add the prefix 'KIC' or 'TIC' to disambiguate.
Warning: 3863594 may refer to a different Kepler or TESS target. Please add the prefix 'KIC' or 'TIC' to disambiguate.
/home/ekaterina/Documents/001_Science/AltaiPony/appaloosa_for_tess/lib/python3.6/site-packages/lightkurve-1.1.1-py3.6.egg/lightkurve/search.py:185: LightkurveWarning: Warning: 15 files available to download. Only the first file has been downloaded. Please use `download_all()` or specify additional criteria (e.g. quarter, campaign, or sector) to limit your search.
  LightkurveWarning)
1% (3/476) of the cadences will be ignored due to the quality mask (quality_bitmask=1130799).
1% (3/476) of the cadences will be ignored due to the quality mask (quality_bitmask=1130799).
/home/ekaterina/Documents/001_Science/AltaiPony/appaloosa_for_tess/lib/python3.6/site-packages/altaipony-0.0.1-py3.6.egg/altaipony/lcio.py:56: ResourceWarning: unclosed file <_io.FileIO name='/home/ekaterina/.lightkurve-cache/mastDownload/Kepler/kplr003863594_lc_Q111111011101110111/kplr003863594-2009131105131_llc.fits' mode='rb' closefd=True>
  return _from_mast_Kepler(targetid, c, **kwargs)

What is the goal / expected behaviour?

download_all is either callable from AltaiPony or a warning and the list of cs is returned instead of a LC, or both.

ekaterinailin commented 4 years ago

Now you can pass a list to c or None to get the full list.