Diviner

Tools to work with Diviner PDS data

source

DataManager

 DataManager (tstr)

Initialize self. See help(type(self)) for accurate signature.

dm = DataManager("2010010110")
dm.local_path

source

read_l1a_data

 read_l1a_data (fname, nrows=None)

source

L1AHeader

 L1AHeader ()

Initialize self. See help(type(self)) for accurate signature.


source

parse_header_line

 parse_header_line (line)

*Parse header lines.

s = ’ a b c ’ parse_header_line(s) [‘a’, ‘b’, ‘c’] s = ’ a, b , c ’ parse_header_line(s) [‘a’, ‘b’, ‘c’]*

dm = DataManager("2010010110")
dm.download()
dm.volume
dm.url
df = pd.read_csv(
    dm.local_path,
    comment="#",
    # names=L1AHeader.columns,
    na_values="-9999",
    skipinitialspace=True,
)
df.head()
pd.set_option("display.max_columns", 200)
df.index
dm.local_path

source

get_data_path

 get_data_path (tstr)
get_data_path("2017010110")