From cd427391898ffac20e28c9708e5aae91cd63747f Mon Sep 17 00:00:00 2001 From: Erik Petigura Date: Mon, 8 Aug 2016 14:59:18 -0700 Subject: [PATCH 1/2] docs reflect the fact that StarModel needs at least one apparent mag --- docs/index.rst | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index 6577c43..9b015ec 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -88,10 +88,35 @@ the following: Teff = (5770, 80) logg = (4.44, 0.08) feh = (0.00, 0.10) - + + # StarModel needs at least one apparent mag + V=(5.0,0.1) + 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() + + +Adding in a Parallax +-------------------- + + +.. code-block:: python + + #spectroscopic properties (value, uncertainty) + Teff = (5770, 80) + logg = (4.44, 0.08) + feh = (0.00, 0.10) + V=(5.0,0.1) + parallax=(100,1) + maxAV = 0.01 + dar = Dartmouth_Isochrone() + + model = StarModel( + dar, Teff=Teff, feh=feh, logg=logg, V=V, parallax=parallax, maxAV=maxAV + ) + model.fit() The model now has a ``samples`` property that contains all of the From bfebdea815dc33da18e43b6191e3565b19106ecf Mon Sep 17 00:00:00 2001 From: Erik Petigura Date: Mon, 8 Aug 2016 15:24:24 -0700 Subject: [PATCH 2/2] M_V from Peacut and Mamajek 2013 --- docs/index.rst | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index 9b015ec..02ea58b 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -90,13 +90,14 @@ the following: feh = (0.00, 0.10) # StarModel needs at least one apparent mag - V=(5.0,0.1) + 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, V=V) model.fit() - + + # Distance should come out to 10pc Adding in a Parallax -------------------- @@ -106,19 +107,21 @@ Adding in a Parallax #spectroscopic properties (value, uncertainty) Teff = (5770, 80) - logg = (4.44, 0.08) feh = (0.00, 0.10) - V=(5.0,0.1) - parallax=(100,1) + + 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, logg=logg, V=V, parallax=parallax, maxAV=maxAV + 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