项目作者: rodluger

项目描述 :
interpretable gaussian processes for stellar light curves
高级语言: Python
项目地址: git://github.com/rodluger/starry_process.git
创建时间: 2020-04-14T16:50:21Z
项目社区:https://github.com/rodluger/starry_process

开源协议:MIT License

下载










Documentation Status


DOI badge













Interpretable Gaussian processes for stellar light curves using starry.

A Gaussian Process for Stellar Variability

The starry_process code implements an interpretable Gaussian process (GP)
for modeling stellar light curves. Whether your goal is to marginalize
over the stellar variability signal (if you think of it as noise)
or to understand the surface features that generated it (if you
think of it as data), this code is for you. The GP implemented here works
just like any other GP you might already use in your analysis, except that
its hyperparameters are physically interpretable. These are (among others)
the radius of the spots, the
mean and variance of the latitude distribution,
the spot contrast, and the number of spots. Users can also specify
things like the rotational period of the star, the limb darkening parameters,
and the inclination (or marginalize over the inclination if it is not known).

The code is written in Python and relies on the
Theano package,
so a little familiarity with that is recommended. Check out the crash
course here.
If you would like to report an issue or contribute to the project, please
check out CONTRIBUTING.md.

Installation

The quickest way is via pip:

  1. pip install starry-process

Note that the starry_process package requires Python 3.6 or later.

Quickstart

Import the main interface:

  1. from starry_process import StarryProcess

Draw samples from a Gaussian process with small mid-latitude spots:

  1. import numpy as np
  2. import matplotlib.pyplot as plt
  3. # Instantiate the GP
  4. sp = StarryProcess(
  5. r=10, # spot radius in degrees
  6. mu=30, # central spot latitude in degrees
  7. sigma=5, # latitude std. dev. in degrees
  8. c=0.1, # fractional spot contrast
  9. n=10 # number of spots
  10. )
  11. # Draw & visualize a spherical harmonic sample
  12. y = sp.sample_ylm().eval()
  13. sp.visualize(y)
  14. # Compute & plot the flux at some inclination
  15. t = np.linspace(0, 4, 1000)
  16. flux = sp.flux(y, t, i=60).eval()[0]
  17. plt.plot(t, flux)

Same as above, but for high-latitude spots:

  1. sp = StarryProcess(r=10, mu=0, sigma=10, c=0.1, n=10)

Large equatorial spots:

  1. sp = StarryProcess(r=30, mu=0, sigma=10, c=0.1, n=10)

Small, approximately isotropic spots:

  1. sp = StarryProcess(r=10, mu=0, sigma=40, c=0.1, n=10)

For more information check out the full
Quickstart tutorial and
the complete documentation.

References & Attribution

The code is described in this
JOSS paper.
It is the backbone of the
Mapping Stellar Surfaces
paper series, including:

If you make use of this code in your research, please cite

  1. @article{Luger2021a,
  2. author = {{Luger}, Rodrigo and {Foreman-Mackey}, Daniel and {Hedges}, Christina and {Hogg}, David W.},
  3. title = {{Mapping stellar surfaces I: Degeneracies in the rotational light curve problem}},
  4. journal = {arXiv e-prints},
  5. keywords = {Astrophysics - Solar and Stellar Astrophysics, Astrophysics - Instrumentation and Methods for Astrophysics},
  6. year = 2021,
  7. month = jan,
  8. eid = {arXiv:2102.00007},
  9. pages = {arXiv:2102.00007},
  10. archiveprefix = {arXiv},
  11. eprint = {2102.00007},
  12. primaryclass = {astro-ph.SR},
  13. adsurl = {https://ui.adsabs.harvard.edu/abs/2021arXiv210200007L},
  14. adsnote = {Provided by the SAO/NASA Astrophysics Data System}
  15. }
  1. @article{Luger2021b,
  2. author = {{Luger}, Rodrigo and {Foreman-Mackey}, Daniel and {Hedges}, Christina},
  3. title = {{Mapping stellar surfaces II: An interpretable Gaussian process model for light curves}},
  4. journal = {arXiv e-prints},
  5. keywords = {Astrophysics - Solar and Stellar Astrophysics, Astrophysics - Earth and Planetary Astrophysics, Astrophysics - Instrumentation and Methods for Astrophysics},
  6. year = 2021,
  7. month = feb,
  8. eid = {arXiv:2102.01697},
  9. pages = {arXiv:2102.01697},
  10. archiveprefix = {arXiv},
  11. eprint = {2102.01697},
  12. primaryclass = {astro-ph.SR},
  13. adsurl = {https://ui.adsabs.harvard.edu/abs/2021arXiv210201697L},
  14. adsnote = {Provided by the SAO/NASA Astrophysics Data System}
  15. }
  1. @article{Luger2021c,
  2. author = {{Luger}, Rodrigo and {Foreman-Mackey}, Daniel and {Hedges}, Christina},
  3. title = {{starry\_process: Interpretable Gaussian processes for stellar light curves}},
  4. journal = {arXiv e-prints},
  5. keywords = {Astrophysics - Solar and Stellar Astrophysics, Astrophysics - Earth and Planetary Astrophysics, Astrophysics - Instrumentation and Methods for Astrophysics},
  6. year = 2021,
  7. month = feb,
  8. eid = {arXiv:2102.01774},
  9. pages = {arXiv:2102.01774},
  10. archiveprefix = {arXiv},
  11. eprint = {2102.01774},
  12. primaryclass = {astro-ph.SR},
  13. adsurl = {https://ui.adsabs.harvard.edu/abs/2021arXiv210201774L},
  14. adsnote = {Provided by the SAO/NASA Astrophysics Data System}
  15. }