starry_process
starry_process: Interpretable Gaussian processes for stellar light curves - Published in JOSS (2021)
Science Score: 93.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 4 DOI reference(s) in README and JOSS metadata -
✓Academic publication links
Links to: joss.theoj.org -
○Committers with academic emails
-
○Institutional organization owner
-
✓JOSS paper metadata
Published in Journal of Open Source Software
Keywords
Keywords from Contributors
Scientific Fields
Repository
interpretable gaussian processes for stellar light curves
Basic Info
Statistics
- Stars: 17
- Watchers: 3
- Forks: 6
- Open Issues: 5
- Releases: 5
Topics
Metadata Files
README.md
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:
bash
pip install starry-process
Note that the starry_process package requires Python 3.6 or later.
Quickstart
Import the main interface:
python
from starry_process import StarryProcess
Draw samples from a Gaussian process with small mid-latitude spots:
```python import numpy as np import matplotlib.pyplot as plt
Instantiate the GP
sp = StarryProcess( r=10, # spot radius in degrees mu=30, # central spot latitude in degrees sigma=5, # latitude std. dev. in degrees c=0.1, # fractional spot contrast n=10 # number of spots )
Draw & visualize a spherical harmonic sample
y = sp.sample_ylm().eval() sp.visualize(y)
Compute & plot the flux at some inclination
t = np.linspace(0, 4, 1000) flux = sp.flux(y, t, i=60).eval()[0] plt.plot(t, flux) ```

Same as above, but for high-latitude spots:
python
sp = StarryProcess(r=10, mu=0, sigma=10, c=0.1, n=10)

Large equatorial spots:
python
sp = StarryProcess(r=30, mu=0, sigma=10, c=0.1, n=10)

Small, approximately isotropic spots:
python
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:
- Degeneracies in the rotational light curve problem
- An interpretable Gaussian process model for stellar light curves
If you make use of this code in your research, please cite
@article{Luger2021a,
author = {{Luger}, Rodrigo and {Foreman-Mackey}, Daniel and {Hedges}, Christina and {Hogg}, David W.},
title = {{Mapping stellar surfaces I: Degeneracies in the rotational light curve problem}},
journal = {arXiv e-prints},
keywords = {Astrophysics - Solar and Stellar Astrophysics, Astrophysics - Instrumentation and Methods for Astrophysics},
year = 2021,
month = jan,
eid = {arXiv:2102.00007},
pages = {arXiv:2102.00007},
archiveprefix = {arXiv},
eprint = {2102.00007},
primaryclass = {astro-ph.SR},
adsurl = {https://ui.adsabs.harvard.edu/abs/2021arXiv210200007L},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}
@article{Luger2021b,
author = {{Luger}, Rodrigo and {Foreman-Mackey}, Daniel and {Hedges}, Christina},
title = {{Mapping stellar surfaces II: An interpretable Gaussian process model for light curves}},
journal = {arXiv e-prints},
keywords = {Astrophysics - Solar and Stellar Astrophysics, Astrophysics - Earth and Planetary Astrophysics, Astrophysics - Instrumentation and Methods for Astrophysics},
year = 2021,
month = feb,
eid = {arXiv:2102.01697},
pages = {arXiv:2102.01697},
archiveprefix = {arXiv},
eprint = {2102.01697},
primaryclass = {astro-ph.SR},
adsurl = {https://ui.adsabs.harvard.edu/abs/2021arXiv210201697L},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}
@article{Luger2021c,
author = {{Luger}, Rodrigo and {Foreman-Mackey}, Daniel and {Hedges}, Christina},
title = {{starry\_process: Interpretable Gaussian processes for stellar light curves}},
journal = {arXiv e-prints},
keywords = {Astrophysics - Solar and Stellar Astrophysics, Astrophysics - Earth and Planetary Astrophysics, Astrophysics - Instrumentation and Methods for Astrophysics},
year = 2021,
month = feb,
eid = {arXiv:2102.01774},
pages = {arXiv:2102.01774},
archiveprefix = {arXiv},
eprint = {2102.01774},
primaryclass = {astro-ph.SR},
adsurl = {https://ui.adsabs.harvard.edu/abs/2021arXiv210201774L},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}
Owner
- Name: Rodrigo Luger
- Login: rodluger
- Kind: user
- Location: New York, NY
- Company: Flatiron Institute
- Website: luger.dev
- Repositories: 33
- Profile: https://github.com/rodluger
Astronomer at the Center for Computational Astrophysics
JOSS Publication
starry_process: Interpretable Gaussian processes for stellar light curves
Authors
Tags
astronomyGitHub Events
Total
- Watch event: 1
- Fork event: 1
Last Year
- Watch event: 1
- Fork event: 1
Committers
Last synced: 5 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Rodrigo Luger | r****r@g****m | 480 |
| Dan F-M | f****y@g****m | 30 |
| Meistermagier | d****m@g****m | 1 |
| Arfon Smith | a****n | 1 |
Issues and Pull Requests
Last synced: 4 months ago
All Time
- Total issues: 19
- Total pull requests: 12
- Average time to close issues: 6 days
- Average time to close pull requests: 2 days
- Total issue authors: 9
- Total pull request authors: 5
- Average comments per issue: 1.79
- Average comments per pull request: 1.58
- Merged pull requests: 11
- Bot issues: 0
- Bot pull requests: 1
Past Year
- Issues: 1
- Pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 1
- Pull request authors: 1
- Average comments per issue: 0.0
- Average comments per pull request: 0.0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 1
Top Authors
Issue Authors
- rodluger (7)
- j-faria (2)
- christinahedges (2)
- nespinoza (2)
- dfm (2)
- javiserna (1)
- enitree (1)
- RomanAkhmetshyn (1)
- Meistermagier (1)
Pull Request Authors
- dfm (5)
- rodluger (4)
- arfon (1)
- Meistermagier (1)
- dependabot[bot] (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 33 last-month
- Total dependent packages: 0
- Total dependent repositories: 1
- Total versions: 6
- Total maintainers: 1
pypi.org: starry-process
interpretable gaussian processes for stellar light curves
- Homepage: https://github.com/rodluger/starry_process
- Documentation: https://starry-process.readthedocs.io/
- License: MIT
-
Latest release: 0.9.8
published over 4 years ago
Rankings
Maintainers (1)
Dependencies
- aesara-theano-fallback >=0.0.4
- matplotlib *
- numpy >=1.19.2,<=1.20.3
- pymc3 *
- pymc3-ext *
- scipy >=1.5.0
- setuptools_scm *
- tqdm *
- actions/cache v2 composite
- actions/checkout v2 composite
- actions/upload-artifact v2 composite
- conda-incubator/setup-miniconda v2 composite
- dfm/rtds-action v1.0.0 composite
- actions/cache v2 composite
- actions/checkout v2 composite
- actions/upload-artifact v2 composite
- conda-incubator/setup-miniconda v2 composite
- docker://openjournals/paperdraft latest composite
- actions/cache v2 composite
- actions/checkout v2 composite
- actions/upload-artifact v2 composite
- conda-incubator/setup-miniconda v2 composite
- actions/checkout v2 composite
- actions/download-artifact v2 composite
- actions/setup-python v2 composite
- actions/upload-artifact v2 composite
- pypa/gh-action-pypi-publish master composite
- ffmpeg >=4.3.1
- mkl-service >=2.3.0
- nb_conda >=2.2.1
- nb_conda_kernels >=2.3.0
- numpy >=1.19.2
- openblas 0.3.6.*
- pandoc >=2.10
- pip >=20.3.3
- python 3.7.3.*
- scipy >=1.5.2
- setuptools >=51.3.3
- sympy >=1.7.1
- tectonic >=0.1.12
- continuumio/miniconda3 latest build
