Ejemplo n.º 1
0
    with open(citation_file, 'r') as citation:
        refs = citation.read().split('@ARTICLE')[1:]
        if len(refs) == 0:
            return ''
        bibtexreference = r"@ARTICLE{}".format(refs[0])
    return bibtexreference


__citation__ = __bibtex__ = _get_bibtex()

if not _SUNPY_SETUP_:
    from sunpy.util.config import load_config, print_config
    from sunpy.util import system_info
    from sunpy.tests.runner import SunPyTestRunner

    self_test = SunPyTestRunner.make_test_runner_in(os.path.dirname(__file__))

    # Load user configuration
    config = load_config()

    import logging

    # Use the root logger as a dummy log before initializing Astropy's logger
    log = logging.getLogger()

    from sunpy.util.logger import _init_log
    log = _init_log(config=config)

    __all__ = ['config', 'self_test', 'system_info']
Ejemplo n.º 2
0
    database.
spectra
    subpackage for working with 2D spectra datatypes
sun
    Contains astronomical and physical constants.
time
    Contains time related constants and methods.
wcs
     The WCS package provides functions to parse a World Coordinate System(WCS)
coordinates for solar images as well as convert between various solar
coordinate systems.

"""
from __future__ import absolute_import

import warnings

try:
    from sunpy.version import version as __version__
except ImportError:
    warnings.warn('Missing version.py; you need to run setup.py', Warning)

from sunpy.util.config import load_config, print_config

# Sample data
from sunpy.data.sample import (AIA_171_IMAGE, RHESSI_IMAGE, EIT_195_IMAGE, 
                               RHESSI_EVENT_LIST, CALLISTO_IMAGE)

# Load user configuration
config = load_config()