Downloader

class heliopy.data.util.Downloader

Bases: object

A template class, that should be sub-classed to provide methods for downloading a single dataset.

The following methods must be implemented by sub-classes:

Methods Summary

download(interval)

Download data for a given interval.

fname(interval)

Return the filename for a given interval.

intervals(starttime, endtime)

The complete list of sub-intervals that cover a time range Each sub-interval is associated with a single file to be downloaded and read in.

load(starttime, endtime)

Load all data between starttime and endtime.

load_local_file(interval)

Load local file for a given interval.

local_dir(interval)

Local directory for a given interval.

local_file_exists(interval)

local_hdf_path(interval)

local_path(interval)

Methods Documentation

download(interval)

Download data for a given interval.

Parameters

interval (sunpy.time.TimeRange) –

Returns

dl_path – Path to the downloaded file.

Return type

pathlib.Path

fname(interval)

Return the filename for a given interval.

Parameters

interval (sunpy.time.TimeRange) –

Returns

fname – Filename

Return type

str

intervals(starttime, endtime)

The complete list of sub-intervals that cover a time range Each sub-interval is associated with a single file to be downloaded and read in.

Parameters
Returns

fnames – List of intervals

Return type

list of sunpy.time.TimeRange

load(starttime, endtime)

Load all data between starttime and endtime.

load_local_file(interval)

Load local file for a given interval.

Parameters

interval (sunpy.time.TimeRange) –

Returns

data

Return type

pandas.DataFrame

local_dir(interval)

Local directory for a given interval.

Parameters

interval (sunpy.time.TimeRange) –

Returns

dir – Local directory

Return type

pathlib.Path

local_file_exists(interval)
local_hdf_path(interval)
local_path(interval)