@@ -14,10 +14,12 @@ JPLSpec Constants and Line Intensity Integral Conversion
14
14
`sbpy.spectroscopy ` has a function called ``molecular_data `` which takes care of
15
15
querying the JPL Molecular Spectral Catalog through the use of
16
16
`astroquery.jplspec ` and calculates all the necessary constants needed for both
17
- production rate and Einstein coefficient calculations. The function
18
- ``intensity_conversion `` takes care of converting the intensity line integral at
19
- 300 K found in JPL Spec catalog and convert it closer to the temperature given
20
- by the user.
17
+ production rate and Einstein coefficient calculations. ``molecular_data ``
18
+ returns an `sbpy.data.phys ` instance with quantities in the order of: Transition
19
+ Frequency, Temperature, Integrated line intensity at 300 K, and Partition
20
+ function at 300 K. The function ``intensity_conversion `` takes care of
21
+ converting the intensity line integral at 300 K found in JPL Spec catalog and
22
+ convert it closer to the temperature given by the user.
21
23
22
24
.. code-block :: python
23
25
@@ -82,18 +84,21 @@ section.
82
84
.. code-block :: python
83
85
84
86
>> > from sbpy.spectroscopy import prodrate_np
87
+ >> > from astropy.time import Time
88
+ >> > from sbpy.data import Ephem
85
89
>> > temp_estimate = 33 . * u.K
86
- >> > target = ' 900918 '
90
+ >> > target = ' 103P '
87
91
>> > vgas = 0.8 * u.km / u.s
88
92
>> > aper = 30 * u.m
89
93
>> > b = 1.13
90
94
>> > mol_tag = 27001
91
95
>> > transition_freq = 265.886434 * u.MHz
92
96
>> > spectra = 1.22 * u.K * u.km / u.s
93
- >> > time = ' 2010-11-3 00:48:06'
97
+ >> > time = Time(' 2010-11-3 00:48:06' , format = ' iso' )
98
+ >> > ephemobj = Ephem(target, epochs = time.jd, id_type = ' id' )
94
99
>> > q = prodrate_np(spectra, temp_estimate, transition_freq,
95
- mol_tag, time, target , vgas, aper,
96
- b = b, id_type = ' id ' )
100
+ mol_tag, ephemobj , vgas, aper,
101
+ b = b)
97
102
98
103
>> > q
99
104
< Quantity 1.0432591198553935e+25 1 / s>
@@ -113,6 +118,8 @@ model does account for the effects of photolysis.
113
118
.. code-block :: python
114
119
115
120
>> > from sbpy.activity.gas import Haser
121
+ >> > from astropy.time import Time
122
+ >> > from sbpy.data import Ephem
116
123
>> > coma = Haser(Q, v, parent)
117
124
>> > Q = spec.production_rate(coma, molecule = ' H2O' )
118
125
@@ -126,14 +133,15 @@ model does account for the effects of photolysis.
126
133
>> > vgas = 0.5 * u.km / u.s
127
134
128
135
>> > time = ' 2017-12-22 05:24:20'
136
+ >> > ephemobj = Ephem(target, epochs = time.jd)
129
137
>> > spectra = 0.26 * u.K * u.km / u.s
130
138
131
139
>> > parent = photo_timescale(' CO' ) * vgas
132
140
133
141
>> > coma = Haser(Q_estimate, vgas, parent)
134
142
135
143
>> > Q = spec.production_rate(coma, spectra, temp_estimate,
136
- transition_freq, mol_tag, time, target ,
144
+ transition_freq, mol_tag, ephemobj ,
137
145
aper = aper, b = b)
138
146
139
147
>> > print (Q)
@@ -169,7 +177,7 @@ The names of the built-in sources are stored as an internal array. They can be
169
177
170
178
>>> from sbpy.spectroscopy import Sun
171
179
>>> Sun.show_builtin()
172
- name description
180
+ name description
173
181
------------ -----------------------------------------------------------------
174
182
E490_2014 E490-00a (2014) reference solar spectrum (Table 3)
175
183
E490_2014LR E490-00a (2014) low resolution reference solar spectrum (Table 4)
0 commit comments