Skip to content

Commit 46cecae

Browse files
committed
Changes made in response to review comments
- created new section for added example - added units to 18% spectral gradient - added note that user-defined bandpasses can be added using synphot.spectrum.Spectral.Element
1 parent 96b4dd1 commit 46cecae

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

docs/sbpy/spectroscopy/index.rst

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,16 +140,21 @@ The following example reddens a solar spectrum:
140140
ylabel='Flux density ({})'.format(fluxd_unit))
141141
plt.tight_layout()
142142

143-
Colors using specified filters of a reddened object can also be computed using
144-
the ``bandpass`` function from the `~sbpy.photometry` module. The following
145-
example computes the LSST g-r color of an object with an 18% spectral gradient
146-
(normalized to 550 nm).
143+
Conversion to Photometry
144+
------------------------
145+
146+
Magnitudes using specified filters of a reddened object, which can then be
147+
used to compute equivalent broadband colors for an object with the specified
148+
spectral gradient, can be computed using the ``bandpass`` function from the
149+
`~sbpy.photometry` module. The following example computes the LSST g-r
150+
color of an object with a spectral gradient of 18%/100 nm (normalized to 550 nm).
147151

148152
First, create a reddened source (e.g., a comet). Then, specify the bandpasses
149153
to be used for the desired color calculation (in this example, LSST g and r),
150154
and calculate the specified color of the comet, where the list of available
151155
bandpasses and their sources may be found in the `~sbpy.photometry.bandpass`
152-
documentation:
156+
documentation. Alternatively, any other filter bandpass can also be provided
157+
as a `~synphot.spectrum.SpectralElement` object and used instead:
153158

154159
.. doctest-requires:: synphot
155160
.. doctest-remote-data::

0 commit comments

Comments
 (0)