astropy / astroquery
1
# Licensed under a 3-clause BSD style license - see LICENSE.rst
2 1
"""
3
NED Query Tool
4
==============
5

6
Module containing a series of functions that execute queries to the NASA
7
Extragalactic Database (NED):
8

9
.. topic:: Revision History
10

11
    Refactored using common API as a part of Google Summer of Code 2013.
12

13
    :Originally contributed by:
14

15
     K. Willett, Jun 2011
16

17
    :Acknowledgements:
18

19
        Based off Adam Ginsburg's Splatalogue search routine:
20
            https://github.com/keflavich/agpy/blob/master/agpy/query_splatalogue.py
21

22
        Service URLs to acquire the VO Tables are taken from Mazzarella et
23
        al. (2007) The National Virtual Observatory: Tools and Techniques
24
        for Astronomical Research, ASP Conference Series, Vol. 382., p.165
25

26
"""
27 1
from astropy import config as _config
28

29

30 1
class Conf(_config.ConfigNamespace):
31
    """
32
    Configuration parameters for `astroquery.ned`.
33
    """
34 1
    server = _config.ConfigItem(
35
        ['http://ned.ipac.caltech.edu/cgi-bin/'],
36
        'Name of the NED server to use.')
37

38 1
    timeout = _config.ConfigItem(
39
        60,
40
        'Time limit for connecting to NED server.')
41

42
    # Set input parameters of choice
43

44 1
    hubble_constant = _config.ConfigItem(
45
        [73, 70.5],
46
        'Value of the Hubble Constant for many NED queries.')
47

48
    """
49
    The correct redshift for NED queries may be chosen by specifying numbers
50
    1, 2, 3 and 4, having the following meanings:
51
    (1) To the Reference Frame defined by the 3K CMB
52
    (2) To the Reference Frame defined by the Virgo Infall only
53
    (3) To the Reference Frame defined by the (Virgo + GA) only
54
    (4) To the Reference Frame defined by the (Virgo + GA + Shapley)
55
    """
56 1
    correct_redshift = _config.ConfigItem(
57
        [1, 2, 3, 4],
58
        'The correct redshift for NED queries, see comments above.')
59

60
    # Set output parameters of choice
61 1
    output_coordinate_frame = _config.ConfigItem(
62
        ['Equatorial',
63
         'Ecliptic',
64
         'Galactic',
65
         'SuperGalactic'],
66
        'Frame in which to display the coordinates in the output.')
67

68 1
    output_equinox = _config.ConfigItem(
69
        ['J2000.0', 'B1950.0'],
70
        'Equinox for the output coordinates.')
71

72 1
    sort_output_by = _config.ConfigItem(
73
        ["RA or Longitude",
74
         "DEC or Latitude",
75
         "GLON",
76
         "GLAT",
77
         "Redshift - ascending",
78
         "Redshift - descending"],
79
        'Display output sorted by this criteria.')
80

81

82 1
conf = Conf()
83

84 1
from .core import Ned, NedClass
85

86 1
__all__ = ['Ned', 'NedClass',
87
           'Conf', 'conf',
88
           ]

Read our documentation on viewing source code .

Loading