1
- .. doctest-skip-all
2
-
3
1
.. _astroquery.jplsbdb :
4
2
5
3
*************************************************************************
@@ -45,8 +43,19 @@ System small-body works as follows:
45
43
46
44
>>> from astroquery.jplsbdb import SBDB
47
45
>>> sbdb = SBDB .query(' 3552' )
48
- >>> print (sbdb)
49
- OrderedDict([('object', OrderedDict([('shortname', '3552 Don Quixote'), ('neo', True), ('orbit_class', OrderedDict([('name', 'Amor'), ('code', 'AMO')])), ('pha', False), ('spkid', '2003552'), ('kind', 'an'), ('orbit_id', '188'), ('fullname', '3552 Don Quixote (1983 SA)'), ('des', '3552'), ('prefix', None)])), ('signature', OrderedDict([('source', 'NASA/JPL Small-Body Database (SBDB) API'), ('version', '1.0')])), ('orbit', OrderedDict([('source', 'JPL'), ('cov_epoch', Unit("2.45657e+06 d")), ('moid_jup', Unit("0.441 AU")), ('t_jup', '2.315'), ('condition_code', '0'), ('not_valid_before', None), ('rms', '0.51'), ('model_pars', []), ('orbit_id', '188'), ('producer', 'Otto Matic'), ('first_obs', '1983-09-10'), ('soln_date', '2018-07-06 06:55:08'), ('two_body', None), ('epoch', Unit("2.4582e+06 d")), ('elements', OrderedDict([('e', '0.709'), ('e_sig', '4.8e-08'), ('a', Unit("4.26 AU")), ('a_sig', Unit("2.3e-08 AU")), ('q', Unit("1.24 AU")), ('q_sig', Unit("2e-07 AU")), ('i', Unit("31.1 deg")), ('i_sig', Unit("1.1e-05 deg")), ('om', Unit("350 deg")), ('om_sig', Unit("1e-05 deg")), ('w', Unit("316 deg")), ('w_sig', Unit("1.1e-05 deg")), ('ma', Unit("355 deg")), ('ma_sig', Unit("3.9e-06 deg")), ('tp', Unit("2.45825e+06 d")), ('tp_sig', Unit("3.5e-05 d")), ('per', Unit("3210 d")), ('per_sig', Unit("2.6e-05 d")), ('n', Unit("0.112 deg / d")), ('n_sig', Unit("9.2e-10 deg / d")), ('ad', Unit("7.27 AU")), ('ad_sig', Unit("4e-08 AU"))])), ('equinox', 'J2000'), ('data_arc', '12717'), ('not_valid_after', None), ('n_del_obs_used', None), ('sb_used', 'SB431-N16'), ('n_obs_used', '869'), ('comment', None), ('pe_used', 'DE431'), ('last_obs', '2018-07-05'), ('moid', Unit("0.334 AU")), ('n_dop_obs_used', None)]))])
46
+ >>> print (sbdb) # doctest: +IGNORE_OUTPUT
47
+ OrderedDict([('object', OrderedDict([('shortname', '3552 Don Quixote'), ('neo', True), ('orbit_class', OrderedDict([('name', 'Amor'),
48
+ ('code', 'AMO')])), ('pha', False), ('spkid', '2003552'), ('kind', 'an'), ('orbit_id', '263'), ('fullname', '3552 Don Quixote (1983 SA)'),
49
+ ('des', '3552'), ('prefix', None)])), ('signature', OrderedDict([('source', 'NASA/JPL Small-Body Database (SBDB) API'), ('version', '1.2')])),
50
+ ('orbit', OrderedDict([('source', 'JPL'), ('cov_epoch', Unit("2.45756e+06 d")), ('moid_jup', Unit("0.44 AU")), ('t_jup', '2.314'),
51
+ ('condition_code', '0'), ('not_valid_before', None), ('rms', '0.46'), ('model_pars', []), ('orbit_id', '263'), ('producer', 'Otto Matic'),
52
+ ('first_obs', '1983-09-10'), ('soln_date', '2021-01-25 05:31:27'), ('two_body', None), ('epoch', Unit("2.459e+06 d")), ('elements', OrderedDict([('e', '0.709'),
53
+ ('e_sig', '2.7e-08'), ('a', Unit("4.26 AU")), ('a_sig', Unit("2e-08 AU")), ('q', Unit("1.24 AU")), ('q_sig', Unit("1.2e-07 AU")), ('i', Unit("31.1 deg")),
54
+ ('i_sig', Unit("5.3e-06 deg")), ('om', Unit("350 deg")), ('om_sig', Unit("9.4e-06 deg")), ('w', Unit("316 deg")), ('w_sig', Unit("9.3e-06 deg")),
55
+ ('ma', Unit("84.5 deg")), ('ma_sig', Unit("3.9e-06 deg")), ('tp', Unit("2.45825e+06 d")), ('tp_sig', Unit("3.1e-05 d")), ('per', Unit("3210 d")),
56
+ ('per_sig', Unit("2.3e-05 d")), ('n', Unit("0.112 deg / d")), ('n_sig', Unit("8.1e-10 deg / d")), ('ad', Unit("7.28 AU")), ('ad_sig', Unit("3.5e-08 AU"))])),
57
+ ('equinox', 'J2000'), ('data_arc', '13645'), ('not_valid_after', None), ('n_del_obs_used', None), ('sb_used', 'SB431-N16'), ('n_obs_used', '1322'),
58
+ ('comment', None), ('pe_used', 'DE431'), ('last_obs', '2021-01-18'), ('moid', Unit("0.334 AU")), ('n_dop_obs_used', None)]))])
50
59
51
60
This function orders the parsed data into a dictionary. This
52
61
representation of the results is convenient but not easy to read for a
@@ -59,7 +68,7 @@ documentation to learn more about the meaning of the different output fields:
59
68
.. code-block :: python
60
69
.. doctest-remote-data ::
61
70
62
- >>> print (SBDB .schematic(sbdb))
71
+ >>> print (SBDB .schematic(sbdb)) # doctest: +IGNORE_OUTPUT
63
72
+-+ object:
64
73
| +-- shortname: 3552 Don Quixote
65
74
| +-- neo: True
@@ -69,60 +78,60 @@ documentation to learn more about the meaning of the different output fields:
69
78
| +-- pha: False
70
79
| +-- spkid: 2003552
71
80
| +-- kind: an
72
- | +-- orbit_id: 188
81
+ | +-- orbit_id: 263
73
82
| +-- fullname: 3552 Don Quixote (1983 SA)
74
83
| +-- des: 3552
75
84
| +-- prefix: None
76
85
+-+ signature:
77
86
| +-- source: NASA/JPL Small-Body Database (SBDB) API
78
- | +-- version: 1.0
87
+ | +-- version: 1.2
79
88
+-+ orbit:
80
89
| +-- source: JPL
81
- | +-- cov_epoch: 2.45657e +06 d
82
- | +-- moid_jup: 0.441 AU
83
- | +-- t_jup: 2.315
90
+ | +-- cov_epoch: 2.45756e +06 d
91
+ | +-- moid_jup: 0.44 AU
92
+ | +-- t_jup: 2.314
84
93
| +-- condition_code: 0
85
94
| +-- not_valid_before: None
86
- | +-- rms: 0.51
95
+ | +-- rms: 0.46
87
96
| +-- model_pars: []
88
- | +-- orbit_id: 188
97
+ | +-- orbit_id: 263
89
98
| +-- producer: Otto Matic
90
99
| +-- first_obs: 1983-09-10
91
- | +-- soln_date: 2018-07-06 06:55:08
100
+ | +-- soln_date: 2021-01-25 05:31:27
92
101
| +-- two_body: None
93
- | +-- epoch: 2.4582e +06 d
102
+ | +-- epoch: 2.459e +06 d
94
103
| +-+ elements:
95
104
| | +-- e: 0.709
96
- | | +-- e_sig: 4.8e -08
105
+ | | +-- e_sig: 2.7e -08
97
106
| | +-- a: 4.26 AU
98
- | | +-- a_sig: 2.3e -08 AU
107
+ | | +-- a_sig: 2e -08 AU
99
108
| | +-- q: 1.24 AU
100
- | | +-- q_sig: 2e-07 AU
109
+ | | +-- q_sig: 1. 2e-07 AU
101
110
| | +-- i: 31.1 deg
102
- | | +-- i_sig: 1.1e-05 deg
111
+ | | +-- i_sig: 5.3e-06 deg
103
112
| | +-- om: 350 deg
104
- | | +-- om_sig: 1e-05 deg
113
+ | | +-- om_sig: 9.4e-06 deg
105
114
| | +-- w: 316 deg
106
- | | +-- w_sig: 1.1e-05 deg
107
- | | +-- ma: 355 deg
115
+ | | +-- w_sig: 9.3e-06 deg
116
+ | | +-- ma: 84.5 deg
108
117
| | +-- ma_sig: 3.9e-06 deg
109
118
| | +-- tp: 2.45825e+06 d
110
- | | +-- tp_sig: 3.5e -05 d
119
+ | | +-- tp_sig: 3.1e -05 d
111
120
| | +-- per: 3210 d
112
- | | +-- per_sig: 2.6e -05 d
121
+ | | +-- per_sig: 2.3e -05 d
113
122
| | +-- n: 0.112 deg / d
114
- | | +-- n_sig: 9.2e -10 deg / d
115
- | | +-- ad: 7.27 AU
116
- | | +-- ad_sig: 4e -08 AU
123
+ | | +-- n_sig: 8.1e -10 deg / d
124
+ | | +-- ad: 7.28 AU
125
+ | | +-- ad_sig: 3.5e -08 AU
117
126
| +-- equinox: J2000
118
- | +-- data_arc: 12717
127
+ | +-- data_arc: 13645
119
128
| +-- not_valid_after: None
120
129
| +-- n_del_obs_used: None
121
130
| +-- sb_used: SB431-N16
122
- | +-- n_obs_used: 869
131
+ | +-- n_obs_used: 1322
123
132
| +-- comment: None
124
133
| +-- pe_used: DE431
125
- | +-- last_obs: 2018-07-05
134
+ | +-- last_obs: 2021-01-18
126
135
| +-- moid: 0.334 AU
127
136
| +-- n_dop_obs_used: None
128
137
@@ -149,7 +158,7 @@ item:
149
158
.. code-block :: python
150
159
151
160
>> > sbdb[' orbit' ][' moid_jup' ] # doctest: +REMOTE_DATA
152
- 0.441 AU
161
+ Unit( " 0.44 AU" )
153
162
154
163
Note that many of the items in the output dictionary are associated
155
164
with `~astropy.units ` which can be readily used for
@@ -160,7 +169,7 @@ orbit intersection distance of the target with respect to Jupiter
160
169
.. code-block :: python
161
170
162
171
>> > print (sbdb[' orbit' ][' moid_jup' ].to(' km' )) # doctest: +REMOTE_DATA
163
- 65972660.9787
172
+ 65823063.108
164
173
165
174
The vast majority of parameter names are identical to those used in
166
175
the `SBDB API documentation
0 commit comments