Ejemplo n.º 1
0
class Conf(_config.ConfigNamespace):
    """
    Configuration parameters for `astropy.utils.iers`.
    """
    auto_download = _config.ConfigItem(
        True,
        'Enable auto-downloading of the latest IERS data.  If set to False '
        'then the local IERS-B file will be used by default (even if the '
        'full IERS file with predictions was already downloaded and cached). '
        'This parameter also controls whether internet resources will be '
        'queried to update the leap second table if the installed version is '
        'out of date. Default is True.')
    auto_max_age = _config.ConfigItem(
        30.0, 'Maximum age (days) of predictive data before auto-downloading. '
        'See "Auto refresh behavior" in astropy.utils.iers documentation for details.'
        'Default is 30.')
    iers_auto_url = _config.ConfigItem(
        IERS_A_URL, 'URL for auto-downloading IERS file data.')
    iers_auto_url_mirror = _config.ConfigItem(
        IERS_A_URL_MIRROR, 'Mirror URL for auto-downloading IERS file data.')
    remote_timeout = _config.ConfigItem(
        10.0, 'Remote timeout downloading IERS file data (seconds).')
    system_leap_second_file = _config.ConfigItem(
        '', 'System file with leap seconds.')
    iers_leap_second_auto_url = _config.ConfigItem(
        IERS_LEAP_SECOND_URL, 'URL for auto-downloading leap seconds.')
    ietf_leap_second_auto_url = _config.ConfigItem(
        IETF_LEAP_SECOND_URL,
        'Alternate URL for auto-downloading leap seconds.')
Ejemplo n.º 2
0
class Conf(_config.ConfigNamespace):
    """
    Configuration parameters for `astroquery.simbad`.
    """
    server = _config.ConfigItem(['simbad.u-strasbg.fr', 'simbad.harvard.edu'],
                                'Name of the SIMBAD mirror to use.')

    timeout = _config.ConfigItem(
        60, 'Time limit for connecting to Simbad server.')

    row_limit = _config.ConfigItem(
        # O defaults to the maximum limit
        0,
        'Maximum number of rows that will be fetched from the result.')
class Conf(_config.ConfigNamespace):
    """
    Configuration parameters for `astroquery.sdss`.
    """
    skyserver_baseurl = _config.ConfigItem(
        'http://skyserver.sdss.org',
        'Base URL for catalog-related queries like SQL and Cross-ID.')
    sas_baseurl = _config.ConfigItem(
        'https://data.sdss.org/sas',
        'Base URL for downloading data products like spectra and images.')
    timeout = _config.ConfigItem(
        60,
        'Time limit for connecting to SDSS server.')
    default_release = _config.ConfigItem(14, 'Default SDSS data release.')
Ejemplo n.º 4
0
class Conf(_config.ConfigNamespace):
    """
    Configuration parameters for `astropy.utils.iers`.
    """
    auto_download = _config.ConfigItem(
        True,
        'Enable auto-downloading of the latest IERS data.  If set to False '
        'then the local IERS-B and leap-second files will be used by default. '
        'Default is True.')
    auto_max_age = _config.ConfigItem(
        30.0, 'Maximum age (days) of predictive data before auto-downloading. '
        'Default is 30.')
    iers_auto_url = _config.ConfigItem(
        IERS_A_URL, 'URL for auto-downloading IERS file data.')
    iers_auto_url_mirror = _config.ConfigItem(
        IERS_A_URL_MIRROR, 'Mirror URL for auto-downloading IERS file data.')
    remote_timeout = _config.ConfigItem(
        10.0, 'Remote timeout downloading IERS file data (seconds).')
    system_leap_second_file = _config.ConfigItem(
        '', 'System file with leap seconds.')
    iers_leap_second_auto_url = _config.ConfigItem(
        IERS_LEAP_SECOND_URL, 'URL for auto-downloading leap seconds.')
    ietf_leap_second_auto_url = _config.ConfigItem(
        IETF_LEAP_SECOND_URL,
        'Alternate URL for auto-downloading leap seconds.')
Ejemplo n.º 5
0
class Conf(_config.ConfigNamespace):
    """
    Configuration parameters for `astroquery.ipac.nexsci.nasa_exoplanet_archive`.
    """

    url_api = _config.ConfigItem(
        "https://exoplanetarchive.ipac.caltech.edu/cgi-bin/nstedAPI/nph-nstedAPI",
        "URL for the NASA Exoplanet Archive API")
    url_tap = _config.ConfigItem(
        "https://exoplanetarchive.ipac.caltech.edu/TAP/",
        "URL for the NASA Exoplanet Archive TAP")
    timeout = _config.ConfigItem(
        600, "Time limit for requests from the NASA Exoplanet Archive servers")
    cache = _config.ConfigItem(False, "Should the requests be cached?")
Ejemplo n.º 6
0
class Conf(_config.ConfigNamespace):
    """
    Configuration parameters for `astroquery.splatalogue`.
    """
    slap_url = _config.ConfigItem(
        'https://find.nrao.edu/splata-slap/slap',
        'Splatalogue SLAP interface URL (not used).')
    query_url = _config.ConfigItem(
        'https://www.cv.nrao.edu/php/splat/c_export.php',
        'Splatalogue web interface URL.')
    timeout = _config.ConfigItem(
        60, 'Time limit for connecting to Splatalogue server.')
    lines_limit = _config.ConfigItem(1000,
                                     'Limit to number of lines exported.')
Ejemplo n.º 7
0
class Conf(_config.ConfigNamespace):
    """
    Configuration parameters for `astroquery.alma`.
    """

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

    archive_url = _config.ConfigItem(_url_list,
                                     'The ALMA Archive mirror to use.')

    auth_url = _config.ConfigItem(auth_urls,
                                  'ALMA Central Authentication Service URLs')

    username = _config.ConfigItem(
        "", 'Optional default username for ALMA archive.')
Ejemplo n.º 8
0
class Conf(_config.ConfigNamespace):
    """
    Configuration parameters for `astroquery.esasky`.
    """
    urlBase = _config.ConfigItem(
        'http://sky.esa.int/esasky-tap',
        'ESASky base URL')

    timeout = _config.ConfigItem(
        1000,
        'Time limit for connecting to template_module server.')
    
    row_limit = _config.ConfigItem(
        10000,
        'Maximum number of rows returned (set to -1 for unlimited).')
Ejemplo n.º 9
0
class Conf(_config.ConfigNamespace):
    """
    Configuration parameters for `astroquery.esa.xmm_newton`.
    """
    DATA_ACTION = _config.ConfigItem(
        "http://nxsa.esac.esa.int/"
        "nxsa-sl/servlet/data-action?", "Main url for retriving XSA files")
    DATA_ACTION_AIO = _config.ConfigItem(
        "http://nxsa.esac.esa.int/"
        "nxsa-sl/servlet/data-action-aio?", "Main url for retriving XSA files")
    METADATA_ACTION = _config.ConfigItem(
        "http://nxsa.esac.esa.int/"
        "nxsa-sl/servlet/"
        "metadata-action?", "Main url for retriving XSA metadata")
    TIMEOUT = 60
Ejemplo n.º 10
0
class Conf(_config.ConfigNamespace):
    """
    Configuration parameters for `astroquery.irsa`.
    """

    server = _config.ConfigItem(
        'http://irsa.ipac.caltech.edu/cgi-bin/Gator/nph-query',
        'Name of the IRSA mirror to use.')
    gator_list_catalogs = _config.ConfigItem(
        'http://irsa.ipac.caltech.edu/cgi-bin/Gator/nph-scan',
        'URL from which to list all the public catalogs in IRSA.')
    row_limit = _config.ConfigItem(
        500, 'Maximum number of rows to retrieve in result')
    timeout = _config.ConfigItem(
        60, 'Time limit for connecting to the IRSA server.')
Ejemplo n.º 11
0
class Conf(_config.ConfigNamespace):
    """
    Configuration parameters for `astroquery.alma`.
    """

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

    archive_url = _config.ConfigItem([
        'http://almascience.org', 'http://almascience.eso.org',
        'http://almascience.nrao.edu', 'http://almascience.nao.ac.jp',
        'http://beta.cadc-ccda.hia-iha.nrc-cnrc.gc.ca'
    ], 'The ALMA Archive mirror to use.')

    username = _config.ConfigItem(
        "", 'Optional default username for ALMA archive.')
class Conf(_config.ConfigNamespace):
    """
    Configuration parameters for `astroquery.mast`.
    """

    server = _config.ConfigItem('https://mast.stsci.edu',
                                'Name of the MAST server.')
    ssoserver = _config.ConfigItem('https://ssoportal.stsci.edu',
                                   'MAST SSO Portal server.')
    catalogsserver = _config.ConfigItem('https://catalogs.mast.stsci.edu',
                                        'Name of the MAST Catalogs server.')
    timeout = _config.ConfigItem(
        600, 'Time limit for requests from the STScI server.')
    pagesize = _config.ConfigItem(
        50000, 'Number of results to request at once from the STScI server.')
Ejemplo n.º 13
0
class Conf(_config.ConfigNamespace):
    """
    Configuration parameters for `astropy.table.jsviewer`.
    """

    jquery_url = _config.ConfigItem(
        'https://code.jquery.com/jquery-3.1.1.min.js',
        'The URL to the jquery library.')

    datatables_url = _config.ConfigItem(
        'https://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js',
        'The URL to the jquery datatables library.')

    css_urls = _config.ConfigItem(
        ['https://cdn.datatables.net/1.10.12/css/jquery.dataTables.css'],
        'The URLs to the css file(s) to include.', cfgtype='list')
Ejemplo n.º 14
0
class Conf(_config.ConfigNamespace):
    """
    Configuration parameters for `astroquery.sdss`.
    """
    server = _config.ConfigItem(
        ['http://data.sdss3.org/sas/dr10'],
        'Link to SDSS website.'
        )
    timeout = _config.ConfigItem(
        60,
        'Time limit for connecting to SDSS server.'
        )
    maxqueries = _config.ConfigItem(
        1,
        'Max number of queries allowed per second.'
        )
Ejemplo n.º 15
0
class Conf(_config.ConfigNamespace):
    """
    Configuration parameters for `astroquery.alma`.
    """

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

    archive_url = _config.ConfigItem(
        [
            'http://almascience.org',
            'http://almascience.eso.org',
            'http://almascience.nrao.edu',
            'http://almascience.nao.ac.jp',
            'http://beta.cadc-ccda.hia-iha.nrc-cnrc.gc.ca',  # the beta server (for testing)
        ],
        'The ALMA Archive mirror to use')
Ejemplo n.º 16
0
class Conf(_config.ConfigNamespace):
    """
    Configuration parameters for `astroquery.heasarc`.
    """
    #server = _config.ConfigItem(
    #    ['http://heasarc.gsfc.nasa.gov/cgi-bin/W3Browse/w3query_noredir.pl'],
    #    'Name of the HEASARC server to use.')

    # The above server does not work for querying available missions.
    # The following server does.
    server = _config.ConfigItem(
        ['https://heasarc.gsfc.nasa.gov/db-perl/W3Browse/w3query.pl'],
        'Name of the HEASARC server used to query available missions.')

    timeout = _config.ConfigItem(
        30, 'Time limit for connecting to HEASARC server.')
Ejemplo n.º 17
0
class Conf(_config.ConfigNamespace):

    logging_level = _config.ConfigItem(
        ['INFO', 'DEBUG', 'WARN', 'WARNING', 'ERROR', 'CRITICAL', 'NONE'],
        'Desired logging level for webbpsf_ext.')
    default_logging_level = _config.ConfigItem(
        'INFO',
        'Logging verbosity: one of {DEBUG, INFO, WARN, ERROR, or CRITICAL}')
    logging_filename = _config.ConfigItem(
        "none", "Desired filename to save log messages to.")
    logging_format_screen = _config.ConfigItem(
        '[%(name)10s:%(levelname)s] %(message)s',
        'Format for lines logged to the screen.')
    logging_format_file = _config.ConfigItem(
        '%(asctime)s [%(name)s:%(levelname)s] %(filename)s:%(lineno)d: %(message)s',
        'Format for lines logged to a file.')
Ejemplo n.º 18
0
class Conf(_config.ConfigNamespace):
    """
    Configuration parameters for `astroquery.cadc`.
    """

    CADC_REGISTRY_URL = _config.ConfigItem(
        'http://www.cadc-ccda.hia-iha.nrc-cnrc.gc.ca/reg/resource-caps',
        'CADC registry information')
    CADCTAP_SERVICE_URI = _config.ConfigItem('ivo://cadc.nrc.ca/tap',
                                             'CADC TAP service identifier')
    CADCDATLINK_SERVICE_URI = _config.ConfigItem(
        'ivo://cadc.nrc.ca/caom2ops', 'CADC DataLink service identifier')
    CADCLOGIN_SERVICE_URI = _config.ConfigItem(
        'ivo://cadc.nrc.ca/gms', 'CADC login service identified')
    TIMEOUT = _config.ConfigItem(
        30, 'Time limit for connecting to template_module server.')
Ejemplo n.º 19
0
class Conf(_config.ConfigNamespace):
    """
    Configuration parameters for `astropy.nddata`.
    """

    warn_unsupported_correlated = _config.ConfigItem(
        True,
        'Whether to issue a warning if `~astropy.nddata.NDData` arithmetic '
        'is performed with uncertainties and the uncertainties do not '
        'support the propagation of correlated uncertainties.')

    warn_setting_unit_directly = _config.ConfigItem(
        True,
        'Whether to issue a warning when the `~astropy.nddata.NDData` unit '
        'attribute is changed from a non-``None`` value to another value '
        'that data values/uncertainties are not scaled with the unit change.')
Ejemplo n.º 20
0
class Conf(_config.ConfigNamespace):
    """
    Configuration parameters for `astropy.utils.iers`.
    """
    auto_download = _config.ConfigItem(
        True,
        'Enable auto-downloading of the latest IERS data.  If set to False '
        'then the local IERS-B file will be used by default. Default is True.')
    auto_max_age = _config.ConfigItem(
        30.0,
        'Maximum age (days) of predictive data before auto-downloading. Default is 30.'
    )
    iers_auto_url = _config.ConfigItem(
        IERS_A_URL, 'URL for auto-downloading IERS file data.')
    remote_timeout = _config.ConfigItem(
        10.0, 'Remote timeout downloading IERS file data (seconds).')
Ejemplo n.º 21
0
class Conf(_config.ConfigNamespace):
    """
    Configuration parameters for `astroquery.esa.hubble`.
    """
    DATA_ACTION = _config.ConfigItem("http://archives.esac.esa.int/"
                                     "ehst-sl-server/servlet/data-action",
                                     "Main url for retriving hst files")
    METADATA_ACTION = _config.ConfigItem("http://archives.esac.esa.int/"
                                         "ehst-sl-server/servlet/"
                                         "metadata-action",
                                         "Main url for retriving hst metadata")
    TARGET_ACTION = _config.ConfigItem("http://archives.esac.esa.int/"
                                       "ehst-sl-server/servlet/"
                                       "targetresolver-action",
                                       "Main url for solving targets")
    TIMEOUT = 60
Ejemplo n.º 22
0
class Conf(_config.ConfigNamespace):
    """
    Configuration parameters for `astroquery.mpc`.
    """
    server = _config.ConfigItem(
        ['minorplanetcenter.net'],
        'Base URL for the MPC web service')

    timeout = _config.ConfigItem(
        60,
        'Time limit for connecting to MPC web service.')

    row_limit = _config.ConfigItem(
        # O defaults to the maximum limit
        0,
        'Maximum number of rows that will be fetched from the result.')
class Conf(_config.ConfigNamespace):
    """
    Configuration parameters for `astroquery.skyview`.
    """
    url = _config.ConfigItem(
        'http://skyview.gsfc.nasa.gov/current/cgi/basicform.pl',
        'SkyView URL')
Ejemplo n.º 24
0
class Conf(_config.ConfigNamespace):
    """
    Configuration parameters for `astroquery.vo`.
    """
    registry_tap_url = _config.ConfigItem(
        'https://vao.stsci.edu/RegTAP/TapService.aspx',
        'Base URL of Registry TAP server')
Ejemplo n.º 25
0
class Conf(_config.ConfigNamespace):
    """Configuration parameters for :mod:`~utilipy.utils.exceptions`."""

    verbose_warnings = _config.ConfigItem(
        True,
        description="When True, use verbose `utilipy` warnings",
        cfgtype="boolean(default=True)",
    )
Ejemplo n.º 26
0
class Conf(_config.ConfigNamespace):
    """
    Configuration parameters for `astroquery.besancon`.
    """

    download_url = _config.ConfigItem([
        'ftp://sasftp.obs-besancon.fr/modele/modele2003/',
        'ftp://sasftp.obs-besancon.fr/modele/',
    ], 'Besancon download URL.  Changed to modele2003 in 2013.')
    model_form = _config.ConfigItem(
        ['http://model.obs-besancon.fr/modele_form.php'],
        'Besancon model form URL')
    ping_delay = _config.ConfigItem(
        30.0,
        'Amount of time before pinging the Besancon server to see if the file is ready.  Minimum 30s.'
    )
    timeout = _config.ConfigItem(30.0, 'Timeout for Besancon query')
Ejemplo n.º 27
0
class Conf(_config.ConfigNamespace):
    """
    Configuration parameters for `astropy.io.votable.exceptions`.
    """
    max_warnings = _config.ConfigItem(
        10, 'Number of times the same type of warning is displayed '
        'before being suppressed',
        cfgtype='integer')
Ejemplo n.º 28
0
class Conf(_config.ConfigNamespace):
    """
    Configuration parameters for specutils.
    """

    do_continuum_function_check = _config.ConfigItem(
        True, 'Whether to check the spectrum baseline value is close'
        'to zero. If it is not within ``threshold`` then a warning is raised.')
Ejemplo n.º 29
0
 class Conf(_config.ConfigNamespace):
     """
     Configuration parameters for ccdproc.
     """
     auto_logging = _config.ConfigItem(
         True, 'Whether to automatically log operations to metadata'
         'If set to False, there is no need to specify add_keyword=False'
         'when calling processing operations.')
Ejemplo n.º 30
0
class Conf(_config.ConfigNamespace):
    """Configuration parameters for `utilipy.imports`."""

    verbose_imports = _config.ConfigItem(
        True,
        description="imports import verbosity configuration",
        cfgtype="boolean(default=True)",
    )