Skip to content

Commit 3718aef

Browse files
authored
Merge pull request #1 from rodluger/dev
Merged dev branch
2 parents bdfb72e + e24bece commit 3718aef

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+177286
-325
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
include README.md
22
include everest/tables/*.csv
33
include everest/tables/*.tsv
4+
include everest/tables/*.info
45
include everest/pbs/*.pbs

bin/everest

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ import everest
1313

1414
if __name__ == '__main__':
1515
parser = argparse.ArgumentParser(prog = 'everest', add_help = True)
16-
parser.add_argument("epic", type = int, help = 'The EPIC target number (required)')
16+
parser.add_argument("epic", type = int, help = 'The EPIC target number or the campaign number (required)')
1717
parser.add_argument("-a", "--aperture", action = 'store_true', help = 'Plot the aperture used for the photometry')
1818
parser.add_argument("-c", "--ccd", action = 'store_true', help = 'Plot the location of the target on the CCD')
19+
parser.add_argument("-k", "--sky", action = 'store_true', help = 'Plot the location of the target on the sky')
1920
parser.add_argument("-i", "--interactive", action = 'store_true', help = 'Plot in interactive mode')
2021
parser.add_argument("-n", "--contamination", action = 'store_true', help = 'Plot the contamination analysis')
2122
parser.add_argument("-p", "--plot", action = 'store_true', help = 'Plot the everest de-trended light curve (default)')
@@ -28,10 +29,15 @@ if __name__ == '__main__':
2829
args = parser.parse_args()
2930

3031
# Plot is default
31-
if not any([getattr(args, a) for a in ['aperture', 'ccd', 'contamination', 'autocorrelation',
32+
if not any([getattr(args, a) for a in ['aperture', 'ccd', 'sky', 'contamination', 'autocorrelation',
3233
'postagestamp', 'crossvalidation', 'k2sff', 'k2sc', 'k2varcat']]):
3334
args.plot = True
3435

36+
# Is this a campaign number?
37+
if args.epic < 20:
38+
everest.usertools.Detector(args.epic)
39+
quit()
40+
3541
# Get the data
3642
star = everest.Everest(args.epic)
3743

@@ -40,6 +46,8 @@ if __name__ == '__main__':
4046
star.aperture()
4147
if args.ccd:
4248
star.ccd()
49+
if args.sky:
50+
star.sky()
4351
if args.contamination:
4452
star.contamination()
4553
if args.crossvalidation:

docs/211069540_everest.jpeg

147 KB
Loading

docs/detector.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.. automodule:: everest.usertools.detector
2+
:members:
3+
4+
.. raw:: html
5+
6+
<script>
7+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
8+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
9+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
10+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
11+
12+
ga('create', 'UA-47070068-2', 'auto');
13+
ga('send', 'pageview');
14+
</script>

docs/everest_example.jpeg

124 KB
Loading

docs/everest_example.jpg

-122 KB
Binary file not shown.

docs/issues.rst

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ Known Issues
22
============
33

44
As we discuss in the paper, **EVEREST** has certain limitations, particularly when
5-
it comes to saturated stars and stars in crowded apertures. Below we outline these
6-
limitations with some examples.
5+
it comes to saturated stars, stars in crowded apertures, and very variable stars.
6+
Below we outline these limitations with some examples.
77

88
.. contents::
99
:local:
@@ -66,6 +66,24 @@ greater than 2 or 3. Other pipelines are likely to perform better for these targ
6666
Note that saturated and crowded stars were **not** included \
6767
when computing the overall performance of **EVEREST** relative to \
6868
other pipelines (such as in `Figures 10-15 <precision.html>`_ in our paper).
69+
70+
RR Lyrae and very variable stars
71+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
72+
73+
.. figure:: 211069540_everest.jpeg
74+
:width: 600px
75+
:align: center
76+
:height: 100px
77+
:figclass: align-center
78+
79+
The :py:mod:`everest` pipeline is also likely to fail for very short period
80+
variable stars, such as RR Lyrae stars. When the stellar variability signal is
81+
stronger and at a higher frequency than the instrumental signal,
82+
nearly all the de-trending power comes from the GP, and the resulting CDPP is rather
83+
insensitive to the value of the PLD coefficients, leading to poor de-trending. Imperfect
84+
optimization of the GP can also lead to damping of the stellar variability signal,
85+
which is evident in the light curve shown above. Consider using the
86+
`K2VARCAT catalog <https://archive.stsci.edu/prepds/k2varcat/>`_ for these stars.
6987

7088
Ultrashort-period EBs
7189
~~~~~~~~~~~~~~~~~~~~~
@@ -81,7 +99,7 @@ eclipsing binaries. If the eclipses take up a significant fraction of the orbit,
8199
not much continuum flux to train the model on. It's also likely that the eclipses
82100
(particularly the secondaries) may not be properly identified as outliers, in which case
83101
the GP optimization step will favor a kernel that captures the short timescale, high amplitude
84-
variability introduced by these eclipses. When this happens, all the de-trending power
102+
variability introduced by these eclipses. As in the variable star case, all the de-trending power
85103
comes from the GP, and the resulting CDPP is insensitive to the value of the PLD coefficients,
86104
which as a result end up taking on effectively random values. This results in light curves
87105
like the one above, where the eclipses get washed out and the white noise gets inflated

docs/modules.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ code can be found on `github <https://github.com/rodluger/everest>`_.
3030
:caption: everest.usertools
3131

3232
ccd
33+
detector
3334
selector
3435
ui
3536

docs/paper.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ The Paper
22
=========
33

44
Below we provide links to Python scripts to generate all the figures in the
5-
`paper <https://github.com/rodluger/everest/blob/master/paper/tex/k2.pdf>`_.
5+
`paper <http://arxiv.org/abs/1607.00524>`_.
66
Most allow the user to generate the figures from scratch, but some load in `.npz`
77
files with pre-downloaded and pre-de-trended data. It shouldn't be *too* hard to
88
generate that data yourself, though...

docs/quick_access.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ for EPIC 205071984:
2626
The :py:mod:`everest` command accepts several options, which we list below.
2727

2828
==================== =================================================================================
29-
:py:obj:`epic` The **EPIC** target number (`required`)
29+
:py:obj:`id` The **EPIC** target number *or* the *K2* campaign number (`required`)
3030
:py:obj:`-a` Plot the aperture used for the photometry
3131
:py:obj:`-c` Plot the location of the target on the CCD
3232
:py:obj:`-i` Plot in interactive mode
33+
:py:obj:`-k` Plot all stars on the *K2* field of view (`interactive`)
3334
:py:obj:`-n` Plot the contamination analysis
3435
:py:obj:`-p` Plot the **EVEREST** de-trended light curve (`default`)
3536
:py:obj:`-r` Plot the autocorrelation/GP fitting result

0 commit comments

Comments
 (0)