Skip to content

Commit 3ce7972

Browse files
tinuademargaretbsipocz
authored andcommitted
jplsbdb completed
1 parent 37914ee commit 3ce7972

File tree

1 file changed

+40
-31
lines changed

1 file changed

+40
-31
lines changed

docs/jplsbdb/jplsbdb.rst

Lines changed: 40 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
.. doctest-skip-all
2-
31
.. _astroquery.jplsbdb:
42

53
*************************************************************************
@@ -45,8 +43,19 @@ System small-body works as follows:
4543

4644
>>> from astroquery.jplsbdb import SBDB
4745
>>> 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)]))])
5059

5160
This function orders the parsed data into a dictionary. This
5261
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:
5968
.. code-block:: python
6069
.. doctest-remote-data::
6170

62-
>>> print(SBDB.schematic(sbdb))
71+
>>> print(SBDB.schematic(sbdb)) # doctest: +IGNORE_OUTPUT
6372
+-+ object:
6473
| +-- shortname: 3552 Don Quixote
6574
| +-- neo: True
@@ -69,60 +78,60 @@ documentation to learn more about the meaning of the different output fields:
6978
| +-- pha: False
7079
| +-- spkid: 2003552
7180
| +-- kind: an
72-
| +-- orbit_id: 188
81+
| +-- orbit_id: 263
7382
| +-- fullname: 3552 Don Quixote (1983 SA)
7483
| +-- des: 3552
7584
| +-- prefix: None
7685
+-+ signature:
7786
| +-- source: NASA/JPL Small-Body Database (SBDB) API
78-
| +-- version: 1.0
87+
| +-- version: 1.2
7988
+-+ orbit:
8089
| +-- 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
8493
| +-- condition_code: 0
8594
| +-- not_valid_before: None
86-
| +-- rms: 0.51
95+
| +-- rms: 0.46
8796
| +-- model_pars: []
88-
| +-- orbit_id: 188
97+
| +-- orbit_id: 263
8998
| +-- producer: Otto Matic
9099
| +-- first_obs: 1983-09-10
91-
| +-- soln_date: 2018-07-06 06:55:08
100+
| +-- soln_date: 2021-01-25 05:31:27
92101
| +-- two_body: None
93-
| +-- epoch: 2.4582e+06 d
102+
| +-- epoch: 2.459e+06 d
94103
| +-+ elements:
95104
| | +-- e: 0.709
96-
| | +-- e_sig: 4.8e-08
105+
| | +-- e_sig: 2.7e-08
97106
| | +-- a: 4.26 AU
98-
| | +-- a_sig: 2.3e-08 AU
107+
| | +-- a_sig: 2e-08 AU
99108
| | +-- q: 1.24 AU
100-
| | +-- q_sig: 2e-07 AU
109+
| | +-- q_sig: 1.2e-07 AU
101110
| | +-- i: 31.1 deg
102-
| | +-- i_sig: 1.1e-05 deg
111+
| | +-- i_sig: 5.3e-06 deg
103112
| | +-- om: 350 deg
104-
| | +-- om_sig: 1e-05 deg
113+
| | +-- om_sig: 9.4e-06 deg
105114
| | +-- 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
108117
| | +-- ma_sig: 3.9e-06 deg
109118
| | +-- tp: 2.45825e+06 d
110-
| | +-- tp_sig: 3.5e-05 d
119+
| | +-- tp_sig: 3.1e-05 d
111120
| | +-- per: 3210 d
112-
| | +-- per_sig: 2.6e-05 d
121+
| | +-- per_sig: 2.3e-05 d
113122
| | +-- 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
117126
| +-- equinox: J2000
118-
| +-- data_arc: 12717
127+
| +-- data_arc: 13645
119128
| +-- not_valid_after: None
120129
| +-- n_del_obs_used: None
121130
| +-- sb_used: SB431-N16
122-
| +-- n_obs_used: 869
131+
| +-- n_obs_used: 1322
123132
| +-- comment: None
124133
| +-- pe_used: DE431
125-
| +-- last_obs: 2018-07-05
134+
| +-- last_obs: 2021-01-18
126135
| +-- moid: 0.334 AU
127136
| +-- n_dop_obs_used: None
128137

@@ -149,7 +158,7 @@ item:
149158
.. code-block:: python
150159
151160
>>> sbdb['orbit']['moid_jup'] # doctest: +REMOTE_DATA
152-
0.441 AU
161+
Unit("0.44 AU")
153162
154163
Note that many of the items in the output dictionary are associated
155164
with `~astropy.units` which can be readily used for
@@ -160,7 +169,7 @@ orbit intersection distance of the target with respect to Jupiter
160169
.. code-block:: python
161170
162171
>>> print(sbdb['orbit']['moid_jup'].to('km')) # doctest: +REMOTE_DATA
163-
65972660.9787
172+
65823063.108
164173
165174
The vast majority of parameter names are identical to those used in
166175
the `SBDB API documentation

0 commit comments

Comments
 (0)