Skip to content

Commit c3fbf16

Browse files
Add pages to docs, flakify.
1 parent 8f2fa2d commit c3fbf16

File tree

4 files changed

+30
-32
lines changed

4 files changed

+30
-32
lines changed

astroquery/ipac/irsa/most/core.py

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -55,53 +55,54 @@
5555
The :meth:`~astroquery.ipac.irsa.most.MostClass.query` method will return
5656
different objects depending on the specified output mode.
5757
58-
=========== ===============
58+
=================== =========================================================
5959
Output mode Returned object
60-
=========== ===============
60+
=================== =========================================================
6161
`Regular` or `Full` Dictionary containing `results`, `metadata` and `region`.
6262
keys, optionally additionally `fits_tarball` and
6363
`region_tarball`.
6464
`Brief` or `Gator` :class:`astropy.table.Table` object.
6565
`VOTable` :class:`astropy.io.VOTable` object.
66-
========== ===============
66+
=================== =========================================================
6767
6868
In `Regular` or `Full` output mode, the returned dictionary's key `results`
6969
maps to the table titled "Images with a Matched Object Position", which
7070
contains the following columns:
7171
72-
====== ============
72+
============ ===============================================================
7373
Column Description
74-
====== ===========
74+
============ ===============================================================
7575
Image_ID A unique identifier for the image data, not necessarily the
7676
image file name.
7777
date_obs Date (UTC) of the observation.
7878
time_obs Time (UTC) of the midpoint of the observation.
7979
mjd_obs Modified Julian Date (days) of the midpoint of the observation.
80-
ra_obs Ephemeris prediction of the object's right ascension (deg, J2000).
81-
dec_obs Ephemeris prediction of the object's declination (deg, J2000).
80+
ra_obs Ephemeris of the object's right ascension (deg, J2000).
81+
dec_obs Ephemeris of the object's declination (deg, J2000).
8282
sun_dist Heliocentric distance of the object (AU).
8383
geo_dist Geocentric distance of the object (AU).
84-
dist_ctr Projected distance of the object from the center of the image (deg).
84+
dist_ctr Projected distance from the center of the image (deg).
8585
phase Sun-Object-earth angle (deg).
8686
vmag Estimate of visual magnitude (from Horizons).
8787
image_url Links to download or view the data.
8888
postcard_url ??? usually ``null``
8989
region_file Markers for the moving object in DS9 "region" format.
90+
============ ===============================================================
9091
9192
The table contained under `metadata` key, when in `Regular` or `Full` mode
9293
contains the following columns:
9394
9495
+---------------------+-------------------------------------------------------+
9596
| Column | Description |
9697
+=====================+=======================================================+
97-
| **General** |
98+
| **General** |
9899
+---------------------+-------------------------------------------------------+
99100
| ra1, dec1, | Right ascension and declination of the 4 corners of |
100101
| ra2, dec2, etc. | the image (deg, J2000) |
101102
+---------------------+-------------------------------------------------------+
102103
| match | match = 1 indicates a matched image (added by MOST) |
103104
+---------------------+-------------------------------------------------------+
104-
| **WISE/NEOWISE** |
105+
| **WISE/NEOWISE** |
105106
+---------------------+-------------------------------------------------------+
106107
| crpix1, crpix2 | Center of image (pixels) |
107108
+---------------------+-------------------------------------------------------+
@@ -132,7 +133,7 @@
132133
| image_set | image_set=4 for 4band, 3 for 3band, 2 for 2band, and |
133134
| | 6, 7 etc. for NEOWISE-R year 1, 2 etc. |
134135
+---------------------+-------------------------------------------------------+
135-
| **2MASS** |
136+
| **2MASS** |
136137
+---------------------+-------------------------------------------------------+
137138
| ordate | UT date of reference (start of nightly operations) |
138139
+---------------------+-------------------------------------------------------+
@@ -150,7 +151,7 @@
150151
+---------------------+-------------------------------------------------------+
151152
| ds | ds=full for 2mass |
152153
+---------------------+-------------------------------------------------------+
153-
| **PTF** |
154+
| **PTF** |
154155
+---------------------+-------------------------------------------------------+
155156
| obsdate | Observation UT date/time YYYY-MM-DD HH:MM:SS.SSS |
156157
+---------------------+-------------------------------------------------------+
@@ -166,7 +167,7 @@
166167
+---------------------+-------------------------------------------------------+
167168
| pfilename | Processed-image filename |
168169
+---------------------+-------------------------------------------------------+
169-
| **ZTF** |
170+
| **ZTF** |
170171
+---------------------+-------------------------------------------------------+
171172
| obsdate | Observation UT date/time YYYY-MM-DD HH:MM:SS.SSS |
172173
+---------------------+-------------------------------------------------------+
@@ -194,7 +195,7 @@
194195
+---------------------+-------------------------------------------------------+
195196
| imgtypecode | Single letter image type code |
196197
+---------------------+-------------------------------------------------------+
197-
| **Spitzer** |
198+
| **Spitzer** |
198199
+---------------------+-------------------------------------------------------+
199200
| reqkey | Spitzer Astronomical Observation Request number |
200201
+---------------------+-------------------------------------------------------+
@@ -228,14 +229,15 @@
228229
`Gator` mode returns :class:`~astropy.table.Table` containing the following
229230
columns:
230231
231-
====== ============
232+
========= =====================================
232233
Column Description
233-
====== ===========
234+
========= =====================================
234235
mjd Modified Julian Date of observation
235236
scan_id Scan ID
236237
frame_num Frame number
237238
ra Right Ascension of the object (J2000)
238239
dec Declination of the object (J2000)
240+
========= =====================================
239241
240242
I guess? It's not clearly documented if these are RA DEC of images or objects
241243
@@ -246,18 +248,16 @@
246248
differ. Certain parameters are always required and for some reasonable defaults
247249
are provided.
248250
249-
+-------------------+------------------+------+-------------------------------+
250-
| Parameter | Required | Type | Note |
251-
+===================+==================+==========+===========================+
251+
+-------------------+------------------+-------+------------------------------+
252+
| Parameter | Required | Type | Note |
253+
+===================+==================+=======+==============================+
252254
| catalog | always required | str | Catalog. By default |
253255
| | | | `conf.catalog`. See |
254256
| | | | `self.list_catalogs`. |
255257
+-------------------+------------------+-------+------------------------------+
256258
| input_type | always required | str | Input mode. |
257-
| | | | |
258-
+-------------------+----------------- +-------+------------------------------+
259+
+-------------------+------------------+-------+------------------------------+
259260
| output_mode | always required | str | Output mode. |
260-
| | | | |
261261
+-------------------+------------------+-------+------------------------------+
262262
| ephem_step | always required | float | Ephemeris step size, days. |
263263
| | | | Default `conf. |
@@ -323,12 +323,10 @@
323323
from bs4 import BeautifulSoup
324324

325325
from astropy.io import votable
326-
from astropy.table import Table, Column
326+
from astropy.table import Table
327327

328-
from astroquery import log
329328
from astroquery.query import BaseQuery
330329
from astroquery.utils import class_or_instance
331-
from astroquery.exceptions import RemoteServiceError, NoResultsWarning
332330

333331
from . import conf
334332

@@ -461,7 +459,7 @@ def _validate_manual_input_type(self, params):
461459

462460
# This seemingly can be whatever
463461
if not params.get("body_designation", False):
464-
params["body_designation"] = "Test"+params["obj_type"]
462+
params["body_designation"] = "Test"+params["obj_type"]
465463

466464
def _validate_input(self, params):
467465
"""

astroquery/ipac/irsa/tests/test_most.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,10 @@
44
import os
55
import pytest
66

7-
#from astropy.coordinates import SkyCoord
8-
#from astropy.table import Table
9-
#import astropy.units as u
107
from astropy.io import votable
118
from astropy.table import Table
129
from astroquery.utils.mocks import MockResponse
13-
from astroquery.ipac.irsa.most import Most, conf
10+
from astroquery.ipac.irsa.most import Most
1411
from astropy.utils.diff import report_diff_values
1512

1613

@@ -120,7 +117,7 @@ def test_validation(patch_get):
120117
output_mode="Brief",
121118
input_type="mpc_input",
122119
obj_type="Asteroid",
123-
mpc_data="K10N010+2010+08+16.1477+1.494525+0.533798+153.4910+113.2118+12.8762+20100621+17.0+4.0+P/2010+N1+(WISE)+MPC+75712"
120+
mpc_data="K10N010+2010+08+16.1477+1.494525+0.533798+153.4910+113.2118+12.8762+20100621+17.0+4.0+P/2010+N1+(WISE)+MPC+75712" # noqa: E501
124121
)
125122

126123

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ The following modules have been completed using a common API:
255255
heasarc/heasarc.rst
256256
hips2fits/hips2fits.rst
257257
hitran/hitran.rst
258+
ipac/irsa/most/most.rst
258259
ipac/irsa/irsa_dust/irsa_dust.rst
259260
ipac/irsa/ibe/ibe.rst
260261
ipac/irsa/irsa.rst

docs/ipac/irsa/most/most.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
.. automodule:: kbmod.kbmod_info
1+
.. automodule:: astroquery.ipac.irsa.most.core
2+
3+
.. automodule:: astroquery.ipac.irsa.most
24
:members:

0 commit comments

Comments
 (0)