Debian Codegraph @

doc/source/properties.rst

raw
1 .. _pysynphot-properties:
2
3 **********************
4 Photometric Properties
5 **********************
6
7 In here, we describe bandpass and spectral photometric properties that can be
8 calculated using **pysynphot**, along with their respective formulae.
9 More information can also be found in
10 :ref:`Koornneef et al. (1986) <synphot-ref-koornneef1986>`,
11 :ref:`pysynphot-bandpass`, and :ref:`pysynphot-observation`.
12
13 The following table summarizes the available photometric properties, which are
14 further elaborated in the sub-sections below:
15
16 +------------------+----------------------------------------------------------+
17 |Command |Description |
18 +==================+==========================================================+
19 |bp.avgwave() |:ref:`pysynphot-formula-avgwv` or reference wavelength |
20 +------------------+----------------------------------------------------------+
21 |bp.rmswidth() |:ref:`pysynphot-formula-rmswidth` |
22 +------------------+----------------------------------------------------------+
23 |bp.photbw() |:ref:`pysynphot-formula-bandw` |
24 +------------------+----------------------------------------------------------+
25 |bp.rectwidth() |:ref:`pysynphot-formula-rectw` |
26 +------------------+----------------------------------------------------------+
27 |bp.equivwidth() |:ref:`pysynphot-formula-equvw` |
28 +------------------+----------------------------------------------------------+
29 |bp.efficiency() |:ref:`pysynphot-formula-qtlam` |
30 +------------------+----------------------------------------------------------+
31 |bp.unit_response()|:ref:`pysynphot-formula-uresp` |
32 +------------------+----------------------------------------------------------+
33 |obs.effstim() |:ref:`pysynphot-formula-effstim` |
34 +------------------+----------------------------------------------------------+
35 |obs.efflam() |:ref:`pysynphot-formula-efflam` |
36 +------------------+----------------------------------------------------------+
37 |bp.pivot() |:ref:`pysynphot-formula-pivwv` |
38 |obs.pivot() | |
39 +------------------+----------------------------------------------------------+
40
41 These are not directly available but they are used to calculate other
42 properties:
43
44 * :ref:`pysynphot-formula-barlam`
45 * :ref:`pysynphot-formula-emflx`
46
47 These are some common variables mentioned in the formulae in this section:
48
49 =================== =================================
50 Variable Description
51 =================== =================================
52 :math:`F_{\lambda}` Source flux distribution
53 :math:`P_{\lambda}` Dimensionless bandpass throughput
54 *area* Telescope collecting area
55 *h* The Planck constant
56 *c* The speed of light
57 =================== =================================
58
59
60 .. _pysynphot-formula-avgwv:
61
62 Bandpass Average Wavelength
63 ===========================
64
65 For a bandpass, :meth:`~pysynphot.spectrum.SpectralElement.avgwave` implements
66 the equation for :math:`\lambda_{0}` as defined in
67 :ref:`Koornneef et al. 1986 <synphot-ref-koornneef1986>` (page 836). It is
68 equivalent to IRAF STSDAS SYNPHOT ``bandpar`` results for ``avglam``, ``avgmw``,
69 or ``refwave``; The throughput at this wavelength is ``tlambda``.
70
71 .. math::
72
73 \lambda_{0} = \frac{\int \; P_{\lambda} \; \lambda \; d\lambda }{\int \; P_{\lambda} \; d\lambda}
74
75 Example:
76
77 >>> bp = S.ObsBandpass('acs,wfc1,f555w')
78 >>> bp.avgwave()
79 5373.2182275673349
80
81
82 .. _pysynphot-formula-rmswidth:
83
84 Bandpass RMS Band Width (Koornneef)
85 ===================================
86
87 For a bandpass, :meth:`~pysynphot.spectrum.SpectralElement.rmswidth` implements
88 the bandpass RMS width as defined in
89 :ref:`Koornneef et al. 1986 <synphot-ref-koornneef1986>` (page 836), where
90 :math:`\lambda_{0}` is the :ref:`pysynphot-formula-avgwv`.
91
92 .. math::
93
94 \lambda_{rms} = \sqrt{\frac{\int \; P_{\lambda} \; (\lambda - \lambda_{0})^{2} \; d\lambda}{\int \; P_{\lambda} \: d\lambda}}
95
96 Example:
97
98 >>> bp = S.ObsBandpass('acs,wfc1,f555w')
99 >>> bp.rmswidth()
100 361.9997795461671
101
102
103 .. _pysynphot-formula-bandw:
104
105 Bandpass RMS Band Width (SYNPHOT)
106 =================================
107
108 For a bandpass, :meth:`~pysynphot.spectrum.SpectralElement.photbw` implements
109 the equivalent for ``bandw`` from IRAF STSDAS SYNPHOT ``bandpar`` task, where
110 :math:`\bar{\lambda}` is :ref:`pysynphot-formula-barlam`. This is not the same
111 as :ref:`pysynphot-formula-rmswidth`.
112
113 .. math::
114
115 bandw = \bar{\lambda} \; \sqrt{\frac{\int \; (P_{\lambda} / \lambda) \; \ln(\lambda \; / \; \bar{\lambda})^{2} \; d\lambda}{\int \; (P_{\lambda} / \lambda) \; d\lambda}}
116
117 Example:
118
119 >>> bp = S.ObsBandpass('acs,wfc1,f555w')
120 >>> bp.photbw()
121 360.11107577076439
122
123
124 .. _pysynphot-formula-barlam:
125
126 Bandpass Mean Log Wavelength
127 ============================
128
129 For a bandpass, this is the mean wavelength as defined in
130 :ref:`Schneider, Gunn, and Hoessel (1983) <synphot-ref-schneider1983>`.
131 This rather unusual definition is such that the corresponding mean frequency is
132 :math:`c / \bar{\lambda}`. This cannot be directly calculated by
133 **pysynphot**, but is used for :ref:`pysynphot-formula-bandw`. It is equivalent
134 to ``barlam`` in IRAF STSDAS SYNPHOT.
135
136 .. math::
137
138 \bar{\lambda} = \exp\Bigg[\frac{\int \; (P_{\lambda} / \lambda) \; \ln(\lambda) \; d\lambda}{\int (P_{\lambda} / \lambda) \; d\lambda}\Bigg]
139
140
141 .. _pysynphot-formula-rectw:
142
143 Bandpass Rectangular Width
144 ==========================
145
146 For a bandpass, :meth:`~pysynphot.spectrum.SpectralElement.rectwidth` implements
147 the rectangular width, where ``equvw`` is :ref:`pysynphot-formula-equvw`.
148 It is equivalent to IRAF STSDAS SYNPHOT ``bandpar`` result for ``rectw``.
149
150 .. math::
151
152 rectw = \frac{equvw}{\mathrm{MAX}(P_{\lambda})}
153
154 Example:
155
156 >>> bp = S.ObsBandpass('acs,wfc1,f555w')
157 >>> bp.rectwidth()
158 1124.6106504868569
159
160
161 .. _pysynphot-formula-equvw:
162
163 Bandpass Equivalent Width
164 =========================
165
166 For a bandpass, :meth:`~pysynphot.spectrum.SpectralElement.equivwidth`
167 implements the equivalent width. It is equivalent to
168 :meth:`~pysynphot.spectrum.SpectralElement.integrate` and IRAF STSDAS SYNPHOT
169 ``bandpar`` result for ``equvw``.
170
171 .. math::
172
173 equvw = \int P_{\lambda} d\lambda
174
175 Example:
176
177 >>> bp = S.ObsBandpass('acs,wfc1,f555w')
178 >>> bp.equivwidth()
179 412.91237693252498
180
181
182 .. _pysynphot-formula-qtlam:
183
184 Bandpass Dimensionless Efficiency
185 =================================
186
187 For a bandpass, :meth:`~pysynphot.spectrum.SpectralElement.efficiency`
188 implements the dimensionless efficiency. It is equivalent to IRAF STSDAS SYNPHOT
189 ``bandpar`` result for ``qtlam``.
190
191 .. math::
192
193 qtlam = \int \frac{P_{\lambda}}{\lambda} d\lambda
194
195 Example:
196
197 >>> bp = S.ObsBandpass('acs,wfc1,f555w')
198 >>> bp.efficiency()
199 0.077196835355538812
200
201
202 .. _pysynphot-formula-uresp:
203
204 Bandpass Unit Response
205 ======================
206
207 For a bandpass, :meth:`~pysynphot.spectrum.SpectralElement.unit_response`
208 implements the computation of the flux (in ``flam``) of a star that produces a
209 response of one count per second in that bandpass, where *h* and *c* are
210 :ref:`astronomical constants <pysynphot-constants>`, and *area* is the
211 :ref:`telescope collecting area <pysynphot-area>`.
212 It is equivalent to IRAF STSDAS SYNPHOT ``bandpar`` result for ``uresp``.
213
214 .. math::
215
216 uresp = \frac{hc}{area} \int P_{\lambda}\; \lambda\; d\lambda
217
218 Example:
219
220 >>> bp = S.ObsBandpass('acs,wfc1,f555w')
221 >>> bp.unit_response()
222 1.9791581474812573e-19
223
224
225 .. _pysynphot-formula-emflx:
226
227 Bandpass Equivalent Monochromatic Flux
228 ======================================
229
230 For a bandpass, its equivalent monochromatic flux is as defined below, where
231 :math:`\lambda_{0}` is :ref:`pysynphot-formula-avgwv`.
232 It is equivalent to IRAF STSDAS SYNPHOT ``bandpar`` result for ``emflx``.
233
234 .. math::
235
236 emflx = \frac{uresp \times equvw}{P(\lambda_{0})}
237
238 This can be calculated indirectly in **pysynphot**, as given in the example
239 below:
240
241 >>> bp = S.ObsBandpass('acs,wfc1,f555w')
242 >>> bp.unit_response() * bp.equivwidth() / bp(bp.avgwave())
243 2.3693354953649259e-16
244
245
246 .. _pysynphot-formula-effstim:
247
248 Effective Stimulus
249 ==================
250
251 For an observation, :meth:`~pysynphot.observation.Observation.effstim`
252 calculates the predicted effective stimulus in given flux unit.
253 :meth:`~pysynphot.observation.Observation.countrate` is a
254 special form of effective stimulus in the unit of counts/s given a
255 :ref:`pre-defined telescope collecting area <pysynphot-area>`. It is equivalent
256 to IRAF STSDAS SYNPHOT ``calcphot`` result for ``effstim``.
257
258 .. math::
259
260 effstim = \frac{\int\; F_{\lambda}\; P_{\lambda}\; \lambda\; d\lambda}{\int\; P_{\lambda}\; \lambda\; d\lambda}
261
262 Example:
263
264 >>> obs = S.Observation(S.BlackBody(5000), S.ObsBandpass('acs,wfc1,f555w'))
265 >>> obs.effstim() # photlam
266 0.00053965665649945897
267 >>> obs.effstim('flam')
268 1.9951166916464645e-15
269 >>> obs.effstim('counts')
270 10080.63299128226
271 >>> obs.countrate()
272 10080.633086603204
273
274
275 .. _pysynphot-formula-efflam:
276
277 Effective Wavelength
278 ====================
279
280 For an observation, :meth:`~pysynphot.observation.Observation.efflam` implements
281 the effective wavelength, as defined in
282 :ref:`Koornneef et al. 1986 <synphot-ref-koornneef1986>` (page 836), where flux
283 unit is converted to ``flam`` prior to calculations. It is equivalent to
284 IRAF STSDAS SYNPHOT ``calcphot`` result for ``efflerg``.
285
286 .. math::
287
288 \lambda_{eff} = \frac{\int \; F_{\lambda} \; P_{\lambda} \; \lambda^2 \; d\lambda}{\int \; F_{\lambda} \; P_{\lambda} \; \lambda \; d\lambda}
289
290 Example:
291
292 >>> obs = S.Observation(S.BlackBody(5000), S.ObsBandpass('acs,wfc1,f555w'))
293 >>> obs.efflam()
294 5406.9723492971125
295
296
297 .. _pysynphot-formula-pivwv:
298
299 Pivot Wavelength
300 ================
301
302 For an observation, :meth:`pysynphot.observation.Observation.pivot` calculates
303 the pivot wavelength. For a bandpass, it is
304 :meth:`pysynphot.spectrum.SpectralElement.pivot`.
305 The formula below applies to an observation.
306 For a bandpass, replace
307 :math:`F_{\lambda}` with :math:`P_{\lambda}` in the formula.
308 It is equivalent to IRAF STSDAS SYNPHOT result for ``pivwv`` and ``pivot``.
309
310 .. math::
311
312 \lambda_{pivot} = \sqrt{\frac{\int \: F_{\lambda} \; \lambda \; d\lambda}{\int(F_{\lambda} \; / \; \lambda) \; d\lambda}}
313
314 Example:
315
316 >>> bp = S.ObsBandpass('acs,wfc1,f555w')
317 >>> bp.pivot()
318 5361.007831073981
319 >>> obs = S.Observation(S.BlackBody(5000), bp)
320 >>> obs.pivot()
321 5394.930514954142