CDASDwonloader

class heliopy.data.cdasrest.CDASDwonloader(dataset, identifier, dir, badvalues=None, warn_missing_units=True, units=None)

Bases: heliopy.data.util.Downloader

Methods Summary

download(interval)

Download data for a given interval.

fname(interval)

Return the filename to which the data is saved 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_local_file(interval)

Load local file for a given interval.

local_dir(interval)

Local directory for a given 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 to which the data is saved for a given interval.

n.b. this does not in general have to be equal to the remote filename of the data.

Parameters

interval (sunpy.time.TimeRange) –

Returns

fname – Filename

Return type

str

static 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_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. This is relative to the base HelioPy data directory.

Parameters

interval (sunpy.time.TimeRange) –

Returns

dir – Local directory

Return type

pathlib.Path