Skip to content

Commit 0863365

Browse files
authored
Merge pull request #77 from pllim/doc-metallicity
Correct metallicity definition
2 parents c8d5461 + c54a048 commit 0863365

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

doc/source/appendixa.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ The atlas data files are organized in a similar naming convention as
7777
:ref:`pysynphot-appendixa-kurucz1993`, and are easily accessible using
7878
`~pysynphot.catalog.Icat` (also see :ref:`pysynphot-spec-atlas`).
7979

80-
The example below generates a spectrum with metallicity :math:`\log Z = +0.1`,
80+
The example below generates a spectrum with metallicity ``[M/H] = +0.1``,
8181
temperature :math:`T_{\textnormal{eff}} = 10000 \textnormal{K}`, and gravity
8282
:math:`\log g = 3.0`:
8383

@@ -112,7 +112,7 @@ absolute flux is needed, the model spectrum must be
112112

113113
The following example shows the header from one of the atlas data files.
114114
This file contains all the models for a star of metallicity
115-
:math:`\log Z = 0.0` (``p00``) and effective temperature
115+
``[M/H] = 0.0`` (``p00``) and effective temperature
116116
:math:`T_{\textnormal{eff}} = 8000 \textnormal{K}` (``8000``), which cover a
117117
range of gravities from :math:`\log g = +1.0` (``g10``) to
118118
:math:`\log g = +5.0` (``g50``).
@@ -157,7 +157,7 @@ HISTORY and effective temperature but different gravity.
157157

158158
The example below shows you how to manually select the flux for a specific
159159
model characterized by a given metallicity, effective temperature, and gravity.
160-
The filename ``kp01_10000`` means :math:`\log Z = +0.1` (``p01``) and
160+
The filename ``kp01_10000`` means ``[M/H] = +0.1`` (``p01``) and
161161
:math:`T_{\textnormal{eff}} = 10000 \textnormal{K}` (``10000``). The column
162162
name ``g30`` means :math:`\log g = 3.0`:
163163

@@ -196,7 +196,7 @@ The atlas data files are organized in a similar naming convention as
196196
:ref:`pysynphot-appendixa-kurucz1993`, and are easily accessible using
197197
`~pysynphot.catalog.Icat` (also see :ref:`pysynphot-spec-atlas`).
198198

199-
The example below generates a spectrum with metallicity :math:`\log Z = +0.1`,
199+
The example below generates a spectrum with metallicity ``[M/H] = +0.1``,
200200
temperature :math:`T_{\textnormal{eff}} = 10000 \textnormal{K}`, and gravity
201201
:math:`\log g = 3.0`:
202202

doc/source/spectrum.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,8 @@ you want, as shown in the example above.
266266
However, three of the atlases (:ref:`pysynphot-appendixa-ck04`,
267267
:ref:`pysynphot-appendixa-kurucz1993`, and :ref:`pysynphot-appendixa-phoenix`)
268268
have a grid of basis spectra which are indexed for various combinations of
269-
effective temperature (:math:`T_{\textnormal{eff}}`) in Kelvin, log metallicity
270-
(:math:`\log Z`), and log surface gravity (:math:`\log g`). They are best
269+
effective temperature (:math:`T_{\textnormal{eff}}`) in Kelvin, metallicity
270+
(``[M/H]``), and log surface gravity (:math:`\log g`). They are best
271271
accessed with a special `~pysynphot.catalog.Icat` class.
272272
You may specify any combination of the properties, so long as each is
273273
within the allowed range, which differs from atlas to atlas. For example,
@@ -277,7 +277,7 @@ which means that no spectrum can be constructed for effective temperatures
277277
below 3499 K or above 50001 K (i.e., an exception will be raised).
278278
The example below obtains the spectrum for a
279279
:ref:`pysynphot-appendixa-kurucz1993` model with
280-
:math:`T_{\textnormal{eff}} = 6000 \; \textnormal{K}`, :math:`\log Z = 0`, and
280+
:math:`T_{\textnormal{eff}} = 6000 \; \textnormal{K}`, ``[M/H] = 0``, and
281281
:math:`\log g = 4.3`:
282282

283283
>>> sp = S.Icat('k93models', 6440, 0, 4.3)

pysynphot/catalog.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
55
Spectra are constructed from basis spectra which are indexed for various
66
combinations of effective temperature (:math:`T_{\\textnormal{eff}}`),
7-
metallicity (:math:`Z`), and log surface gravity (:math:`\\log g`).
7+
metallicity (``[M/H]``), and log surface gravity (:math:`\\log g`).
88
The user may specify any combination of :math:`T_{\\textnormal{eff}}`,
9-
:math:`Z`, and :math:`\\log g` so long as each parameter is within the range
9+
``[M/H]``, and :math:`\\log g` so long as each parameter is within the range
1010
for that parameter defined by the catalog.
1111
1212
For example, the :ref:`pysynphot-appendixa-ck04` catalog contains spectra for
@@ -96,7 +96,7 @@ def __init__(self,catdir,Teff,metallicity,log_g):
9696
self.parameter_names = ['Teff','metallicity','log G']
9797

9898
filename = locations.CAT_TEMPLATE.replace('*',catdir)
99-
self.name="%s(Teff=%g,z=%g,logG=%g)"%(catdir,Teff,metallicity,log_g)
99+
self.name="%s(Teff=%g,metallicity=%g,logG=%g)"%(catdir,Teff,metallicity,log_g)
100100

101101
if filename in CATALOG_CACHE:
102102
indices = CATALOG_CACHE[filename]

0 commit comments

Comments
 (0)