Skip to content

Commit 560964b

Browse files
committed
adding remote data annotations
1 parent 89e3cd0 commit 560964b

File tree

2 files changed

+35
-35
lines changed

2 files changed

+35
-35
lines changed

astroquery/esa/neocc/core.py

Lines changed: 35 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ def query_list(list_name):
6363
the list of all NEAs currently considered in the NEOCC system.
6464
6565
>>> from astroquery.esa.neocc import neocc
66-
>>> list_data = neocc.query_list(list_name='nea_list')
67-
>>> print(list_data) # doctest: +IGNORE_OUTPUT
68-
NEA
66+
>>> list_data = neocc.query_list(list_name='nea_list') # doctest: +REMOTE_DATA
67+
>>> print(list_data) # doctest: +IGNORE_OUTPUT +REMOTE_DATA
68+
NEA
6969
---------------
7070
433 Eros
7171
719 Albert
@@ -84,8 +84,8 @@ def query_list(list_name):
8484
contains object with upcoming close approaches.
8585
8686
>>> from astroquery.esa.neocc import neocc
87-
>>> list_data = neocc.query_list(list_name='close_approaches_upcoming')
88-
>>> print(list_data) # doctest: +IGNORE_OUTPUT
87+
>>> list_data = neocc.query_list(list_name='close_approaches_upcoming') # doctest: +REMOTE_DATA
88+
>>> print(list_data) # doctest: +IGNORE_OUTPUT +REMOTE_DATA
8989
Object Name Date ... Rel. vel in km/s CAI index
9090
----------- ----------------------- ... ---------------- ---------
9191
2021JA5 2023-09-07 00:00:00.000 ... 11.0 3.496
@@ -175,25 +175,25 @@ def query_object(name, tab, **kwargs):
175175
*query_list* search:
176176
177177
>>> from astroquery.esa.neocc import neocc
178-
>>> ast_impacts = neocc.query_object(name='1979XB', tab='impacts')
178+
>>> ast_impacts = neocc.query_object(name='1979XB', tab='impacts') # doctest: +REMOTE_DATA
179179
180180
or
181181
182-
>>> nea_list = neocc.query_list(list_name='nea_list')
183-
>>> print(nea_list["NEA"][3163])
182+
>>> nea_list = neocc.query_list(list_name='nea_list') # doctest: +REMOTE_DATA
183+
>>> print(nea_list["NEA"][3163]) # doctest: +REMOTE_DATA
184184
1979XB
185-
>>> ast_impacts = neocc.query_object(name=nea_list["NEA"][3163], tab='impacts')
185+
>>> ast_impacts = neocc.query_object(name=nea_list["NEA"][3163], tab='impacts') # doctest: +REMOTE_DATA
186186
187187
or
188188
189-
>>> risk_list = neocc.query_list(list_name='risk_list')
190-
>>> print(risk_list['Object Name'][1])
189+
>>> risk_list = neocc.query_list(list_name='risk_list') # doctest: +REMOTE_DATA
190+
>>> print(risk_list['Object Name'][1]) # doctest: +REMOTE_DATA
191191
1979XB
192-
>>> ast_impacts = neocc.query_object(name=risk_list['Object Name'][1], tab='impacts')
192+
>>> ast_impacts = neocc.query_object(name=risk_list['Object Name'][1], tab='impacts') # doctest: +REMOTE_DATA
193193
194194
This query returns a list containing a single table:
195195
196-
>>> print(ast_impacts[0]) # doctest: +IGNORE_OUTPUT
196+
>>> print(ast_impacts[0]) # doctest: +IGNORE_OUTPUT +REMOTE_DATA
197197
date MJD sigma sigimp ... Exp. Energy in MT PS TS
198198
----------------------- --------- ------ ------ ... ----------------- ----- ---
199199
2056-12-12 21:38:52.800 72344.902 0.255 0.0 ... 0.013 -2.86 0
@@ -207,19 +207,19 @@ def query_object(name, tab, **kwargs):
207207
Most of the tables returned by this tye of query contain additional information
208208
in the 'meta' property, including information about the table columns.
209209
210-
>>> print(ast_impacts[0].meta.keys()) # doctest: +IGNORE_OUTPUT
210+
>>> print(ast_impacts[0].meta.keys()) # doctest: +IGNORE_OUTPUT +REMOTE_DATA
211211
odict_keys(['Column Info', 'observation_accepted', 'observation_rejected',
212212
'arc_start', 'arc_end', 'info', 'computation'])
213213
214214
215215
**Physical Properties:** This example shows how to obtain the physical properties table.
216216
217217
>>> from astroquery.esa.neocc import neocc
218-
>>> properties = neocc.query_object(name='433', tab='physical_properties')
218+
>>> properties = neocc.query_object(name='433', tab='physical_properties') # doctest: +REMOTE_DATA
219219
220220
Again, the output is a list containing a single table.
221221
222-
>>> print(properties[0]) # doctest: +IGNORE_OUTPUT
222+
>>> print(properties[0]) # doctest: +IGNORE_OUTPUT +REMOTE_DATA
223223
Property ...
224224
----------------------- ...
225225
Absolute Magnitude (H) ...
@@ -247,15 +247,15 @@ def query_object(name, tab, **kwargs):
247247
returns a list containing 3-5 `astropy.table.Table`s depending if there are
248248
"Roving observer" or satellite observations.
249249
250-
>>> ast_observations = neocc.query_object(name='99942', tab='observations')
251-
>>> for tab in ast_observations:
250+
>>> ast_observations = neocc.query_object(name='99942', tab='observations') # doctest: +REMOTE_DATA
251+
>>> for tab in ast_observations: # doctest: +REMOTE_DATA
252252
... print(tab.meta["Title"])
253253
Observation metadata
254254
Optical Observations
255255
Satellite Observations
256256
Radar Observations
257-
>>> sat_obs = ast_observations[2]
258-
>>> print(sat_obs) # doctest: +IGNORE_OUTPUT
257+
>>> sat_obs = ast_observations[2] # doctest: +REMOTE_DATA
258+
>>> print(sat_obs) # doctest: +IGNORE_OUTPUT +REMOTE_DATA
259259
Design. K T N ... X Y Z Obs Code
260260
------- --- --- --- ... ---------- ----------------- ------------------ --------
261261
99942 S s -- ... -5634.1734 -2466.2657 -3038.3924 C51
@@ -273,8 +273,8 @@ def query_object(name, tab, **kwargs):
273273
**Close Approaches**: This example queris for close approaches, another query
274274
which results in a single data table.
275275
276-
>>> close_appr = neocc.query_object(name='99942', tab='close_approaches')
277-
>>> print(close_appr[0]) # doctest: +IGNORE_OUTPUT
276+
>>> close_appr = neocc.query_object(name='99942', tab='close_approaches') # doctest: +REMOTE_DATA
277+
>>> print(close_appr[0]) # doctest: +IGNORE_OUTPUT +REMOTE_DATA
278278
BODY CALENDAR-TIME MJD-TIME ... STRETCH WIDTH PROBABILITY
279279
----- ----------------------- --------------- ... --------- --------- -----------
280280
EARTH 1957-04-01T03:19:44.544 35929.138710654 ... 2.871e-05 5.533e-09 1.0
@@ -297,15 +297,15 @@ def query_object(name, tab, **kwargs):
297297
This query returns a list of three tables, the orbital properties, and the covariance
298298
and corotation matrices.
299299
300-
>>> ast_orbit_prop = neocc.query_object(name='99942', tab='orbit_properties',
301-
... orbital_elements='keplerian', orbit_epoch='present')
302-
>>> for tab in ast_orbit_prop:
300+
>>> ast_orbit_prop = neocc.query_object(name='99942', tab='orbit_properties', orbital_elements='keplerian',
301+
... orbit_epoch='present') # doctest: +REMOTE_DATA
302+
>>> for tab in ast_orbit_prop: # doctest: +REMOTE_DATA
303303
... print(tab.meta["Title"])
304304
Orbital Elements
305305
COV
306306
COR
307-
>>> print(ast_orbit_prop[0][:5]) # doctest: +IGNORE_OUTPUT
308-
Section Property Value
307+
>>> print(ast_orbit_prop[0][:5]) # doctest: +IGNORE_OUTPUT +REMOTE_DATA
308+
Section Property Value
309309
-------- -------- -----------------------
310310
ANODE ANODE -8.6707715058413322E-04
311311
APHELION APHELION 1.0993687643243035E+00
@@ -318,13 +318,14 @@ def query_object(name, tab, **kwargs):
318318
is necessary to provide five additional inputs to *query_object*
319319
method: `observatory`, `start`, `stop`, `step` and `step_unit`.
320320
321-
>>> ast_ephemerides = neocc.query_object(name='99942', tab='ephemerides',
322-
... observatory='500', start='2019-05-08 01:30',
323-
... stop='2019-05-23 01:30', step='1', step_unit='days')
324-
>>> ast_ephemerides = ast_ephemerides[0]
325-
>>> print(ast_ephemerides.meta.keys())
326-
odict_keys(['Ephemerides generation for', 'Observatory', 'Initial Date', 'Final Date', 'Time step', 'Column Info'])
327-
>>> print(ast_ephemerides) # doctest: +IGNORE_OUTPUT
321+
>>> ast_ephemerides = neocc.query_object(name='99942', tab='ephemerides', observatory='500',
322+
... start='2019-05-08 01:30', stop='2019-05-23 01:30',
323+
... step='1', step_unit='days') # doctest: +REMOTE_DATA
324+
>>> ast_ephemerides = ast_ephemerides[0] # doctest: +REMOTE_DATA
325+
>>> print(ast_ephemerides.meta.keys()) # doctest: +REMOTE_DATA
326+
odict_keys(['Ephemerides generation for', 'Observatory', 'Initial Date',
327+
'Final Date', 'Time step', 'Column Info'])
328+
>>> print(ast_ephemerides) # doctest: +IGNORE_OUTPUT +REMOTE_DATA
328329
Date MJD (UTC) RA (h m s) ... Err1 (") Err2 (") AngAx (deg)
329330
----------------------- ---------- ------------ ... -------- -------- -----------
330331
2019-05-08T01:30:00.000 58611.0625 6 43 40.510 ... 0.001 0.0 115.8

astroquery/esa/neocc/tabs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,6 @@ def parse_physical_properties(resp_str):
537537
-------
538538
response : Table
539539
The response table.
540-
541540
"""
542541

543542
if resp_str == '':

0 commit comments

Comments
 (0)