1
# Licensed under a 3-clause BSD style license - see LICENSE.rst
2

3 1
"""
4
JPLSBDB
5
-------------------------
6

7
:author: Michael Mommert (mommermiscience@gmail.com)
8
"""
9

10 1
from astropy import config as _config
11

12

13 1
class Conf(_config.ConfigNamespace):
14
    """
15
    Configuration parameters for `astroquery.jplsbdb`.
16
    """
17 1
    server = _config.ConfigItem(
18
        ['https://ssd-api.jpl.nasa.gov/sbdb.api'],
19
        'JPL SBDB')
20

21 1
    timeout = _config.ConfigItem(
22
        30,
23
        'Time limit for connecting to JPL server.')
24

25
    # dictionary to replace JPL SBDB units with astropy units in data objects
26 1
    data_unit_replace = {'JED': 'd', 'TDB': 'd'}
27

28
    # dictionary for units of individual and unique fields
29 1
    field_unit = {'epoch': 'd',
30
                  'cov_epoch': 'd',
31
                  'moid': 'au',
32
                  'moid_jup': 'au',
33
                  'jd': 'd',
34
                  'sigma_t': 'min',
35
                  'dist_min': 'au',
36
                  'dist_max': 'au',
37
                  'v_rel': 'km / s',
38
                  'v_inf': 'km / s',
39
                  'unc_major': 'km',
40
                  'unc_minor': 'km',
41
                  'un_angle': 'deg',
42
                  'dt': 'yr',
43

44
                  'v_imp': 'km / s',
45
                  'h': 'mag',
46
                  'diam': 'km',
47
                  'mass': 'kg',
48
                  }
49
    # `dist` not listed here, as it is defined twice with different units
50
    # 'energy' not listed here: 'Mt' not available in astropy.units
51

52

53 1
conf = Conf()
54

55 1
from .core import SBDB, SBDBClass
56

57 1
__all__ = ['SBDB', 'SBDBClass',
58
           'Conf', 'conf',
59
           ]

Read our documentation on viewing source code .

Loading