You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/sbpy/activity/dust.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,11 +85,11 @@ The `Afrho` class may be converted to a flux density, and the original value is
85
85
86
86
`Afrho` works seamlessly with `sbpy`'s spectral calibration framework (:ref:`sbpy-calib`) when the `astropy` affiliated package `synphot` is installed. The solar flux density (via `~sbpy.calib.solar_fluxd`) is not required, but instead the spectral wavelengths or the system transmission of the instrument and filter:
Copy file name to clipboardExpand all lines: docs/sbpy/calib.rst
+22-4Lines changed: 22 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,13 +95,21 @@ Photometric calibration (without spectra or `synphot`)
95
95
96
96
The `~astropy.utils.state.ScienceState` objects `~sbpy.calib.solar_fluxd` and `~sbpy.calib.vega_fluxd` control photometric calibration by filter name. These are completely independent of the spectroscopic calibration and can be used without the optional `synphot` package. The spectral flux densities (per unit wavelength) of the Sun and Vega are provided and enabled by default. Values and filters are from Willmer (2018):
97
97
98
+
.. testsetup::
99
+
.. doctest-requires:: astropy<5.3
100
+
101
+
>>> from sbpy.calib import Sun, solar_fluxd, vega_fluxd
102
+
>>> import sbpy.units as sbu
103
+
104
+
.. doctest-requires:: astropy>=5.3
105
+
98
106
>>> from sbpy.calib import Sun, solar_fluxd, vega_fluxd
@@ -117,6 +125,8 @@ Users wanting to calibrate data with their own flux densities may do so. For ex
117
125
118
126
Some sbpy calculations will require the effective wavelength or the pivot wavelength. These are optional parameters that may be specified with `~sbpy.calib.solar_fluxd` and `~sbpy.calib.vega_fluxd`:
119
127
128
+
.. doctest-requires:: astropy>=5.3
129
+
120
130
>>> import astropy.units as u
121
131
>>> from sbpy.calib import vega_fluxd, Vega
122
132
>>>
@@ -133,15 +143,15 @@ Some sbpy calculations will require the effective wavelength or the pivot wavele
133
143
... # doctest: +IGNORE_EXCEPTION_DETAIL
134
144
Traceback (most recent call last):
135
145
...
136
-
UnitConversionError: 'Jy' (spectral flux density) and 'erg / (Angstrom cm2 s)' (spectral flux density wav) are not convertible Is "V(lambda pivot)" required and was it provided?
146
+
UnitConversionError: 'Jy' (spectral flux density) and 'erg / (Angstrom s cm2)' (spectral flux density wav) are not convertible Is "V(lambda pivot)" required and was it provided?
0 commit comments