SunPy data

The SunPy data module contains ways to access sample data and small test files for running the SunPy test suite.

sunpy.data Package

Functions

download_sample_data([overwrite])

Download all sample data at once.

Variables

manager

This class provides a remote data manager for managing remote files.

cache

Cache provides a way to download and cache files.

sunpy.data.sample Module

This module provides the following sample data files. These files are downloaded when this module is imported for the first time. See Sample data set overview for plots of some of these files.

Variable name

Name of downloaded file

AIA_094_IMAGE

AIA20110607_063305_0094_lowres.fits

AIA_131_IMAGE

AIA20110607_063301_0131_lowres.fits

AIA_1600_IMAGE

AIA20110607_063305_1600_lowres.fits

AIA_171_IMAGE

AIA20110607_063302_0171_lowres.fits

AIA_171_ROLL_IMAGE

aiacalibim5.fits.gz

AIA_193_CUTOUT01_IMAGE

AIA20110607_063307_0193_cutout.fits

AIA_193_CUTOUT02_IMAGE

AIA20110607_063931_0193_cutout.fits

AIA_193_CUTOUT03_IMAGE

AIA20110607_064555_0193_cutout.fits

AIA_193_CUTOUT04_IMAGE

AIA20110607_065219_0193_cutout.fits

AIA_193_CUTOUT05_IMAGE

AIA20110607_065843_0193_cutout.fits

AIA_193_IMAGE

AIA20110607_063307_0193_lowres.fits

AIA_211_IMAGE

AIA20110607_063302_0211_lowres.fits

AIA_335_IMAGE

AIA20110607_063303_0335_lowres.fits

CALLISTO_SPECTRUM

BIR_20110607_062400_10.fit

EIT_195_IMAGE

eit_l1_20110607_203753.fits

EVE_TIMESERIES

20110607_EVE_L0CS_DIODES_1m.txt

GBM_TIMESERIES

glg_cspec_n5_110607_v00.pha

GOES_XRS_TIMESERIES

go1520110607.fits

HMI_LOS_IMAGE

HMI20110607_063211_los_lowres.fits

LOFAR_IMAGE

LOFAR_70MHZ_20190409_131136.fits

LYRA_LEVEL3_TIMESERIES

lyra_20110607-000000_lev3_std.fits

NORH_TIMESERIES

tca110607.fits

RHESSI_IMAGE

hsi_image_20110607_063300.fits

RHESSI_TIMESERIES

hsi_obssumm_20110607_025.fits

SRS_TABLE

20110607SRS.txt

SWAP_LEVEL1_IMAGE

swap_lv1_20110607_063329.fits

sunpy.data.test Package

This package contains all of SunPy’s test data.

Functions

get_test_filepath(filename, **kwargs)

Return the full path to a test file in the data/test directory.

test_data_filenames()

Return a list of all test files in data/test directory.

sunpy.data.data_manager Package

Classes

Cache(downloader, storage, cache_dir[, expiry])

Cache provides a way to download and cache files.

DataManager(cache)

This class provides a remote data manager for managing remote files.

ParfiveDownloader()

Concrete implementation of DownloaderBase using parfive.

SqliteStorage(path)

This provides a sqlite backend for storage.

Class Inheritance Diagram

Inheritance diagram of sunpy.data.data_manager.cache.Cache, sunpy.data.data_manager.manager.DataManager, sunpy.data.data_manager.downloader.ParfiveDownloader, sunpy.data.data_manager.storage.SqliteStorage

sunpy.data.data_manager.downloader Module

Classes

DownloaderBase()

Base class for remote data manager downloaders.

DownloaderError

Error to be raised when a download fails.

ParfiveDownloader()

Concrete implementation of DownloaderBase using parfive.

Class Inheritance Diagram

Inheritance diagram of sunpy.data.data_manager.downloader.DownloaderBase, sunpy.data.data_manager.downloader.DownloaderError, sunpy.data.data_manager.downloader.ParfiveDownloader

sunpy.data.data_manager.storage Module

Storage module contains the abstract implementation of storage for sunpy.data.data_manager.Cache and a concrete implementation using sqlite.

Classes

StorageProviderBase()

Base class for remote data manager storage providers.

SqliteStorage(path)

This provides a sqlite backend for storage.

InMemStorage()

This provides a storage stored in memory.

Class Inheritance Diagram

Inheritance diagram of sunpy.data.data_manager.storage.StorageProviderBase, sunpy.data.data_manager.storage.SqliteStorage, sunpy.data.data_manager.storage.InMemStorage