Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs reflect the fact that StarModel needs at least one apparent mag #29

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 30 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,40 @@ the following:
Teff = (5770, 80)
logg = (4.44, 0.08)
feh = (0.00, 0.10)


# StarModel needs at least one apparent mag
V = (4.86,0.02) # M_V for sun (Peacut and Mamajek 2013)

dar = Dartmouth_Isochrone()

model = StarModel(dar, Teff=Teff, logg=logg, feh=feh)
model = StarModel(dar, Teff=Teff, logg=logg, feh=feh, V=V)
model.fit()

# Distance should come out to 10pc

Adding in a Parallax
--------------------


.. code-block:: python

#spectroscopic properties (value, uncertainty)
Teff = (5770, 80)
feh = (0.00, 0.10)

V = (4.86,0.02) # M_V for sun (Peacut and Mamajek 2013)
parallax=(100,1) # Paralax in mas
maxAV = 0.01
dar = Dartmouth_Isochrone()

model = StarModel(
dar, Teff=Teff, feh=feh, V=V, parallax=parallax,maxAV=0.01
)
model.fit()

# Radius should come out to 1 solar radius.


The model now has a ``samples`` property that contains all of the
samples generated by the MultiNest/MCMC chain in a :class:`pandas.DataFrame`
object---or more specifically, it contains both the samples generated
Expand Down