astropy / astroquery
1
# Licensed under a 3-clause BSD style license - see LICENSE.rst
2 1
"""
3
ALMA Archive service.
4
"""
5 1
from astropy import config as _config
6

7

8
# list the URLs here separately so they can be used in tests.
9 1
_url_list = ['http://almascience.org',
10
             'https://almascience.eso.org',
11
             'https://almascience.nrao.edu',
12
             'https://almascience.nao.ac.jp']
13

14 1
_test_url_list = ['https://almascience-dev.nrao.edu']
15

16 1
auth_urls = ['asa.alma.cl', 'rh-cas.alma.cl']
17

18

19 1
class Conf(_config.ConfigNamespace):
20
    """
21
    Configuration parameters for `astroquery.alma`.
22
    """
23

24 1
    timeout = _config.ConfigItem(60, "Timeout in seconds.")
25

26 1
    archive_url = _config.ConfigItem(
27
        _url_list,
28
        'The ALMA Archive mirror to use.')
29

30 1
    test_archive_url = _config.ConfigItem(
31
        _test_url_list,
32
        'ALMA Archive Test Mirrors (temporary)'
33
    )
34

35 1
    auth_url = _config.ConfigItem(
36
        auth_urls,
37
        'ALMA Central Authentication Service URLs'
38
    )
39

40 1
    username = _config.ConfigItem(
41
        "",
42
        'Optional default username for ALMA archive.')
43

44

45 1
conf = Conf()
46

47 1
from .core import Alma, AlmaClass, ALMA_BANDS
48

49 1
__all__ = ['Alma', 'AlmaClass',
50
           'Conf', 'conf', 'ALMA_BANDS'
51
           ]

Read our documentation on viewing source code .

Loading