lcdata.HDF5Dataset
- class lcdata.HDF5Dataset(path, meta)
Dataset corresponding to an HDF5 file on disk.
This class only loads the metadata by default. Accessing a light curve in the dataset will read it from disk.
Typically you won’t want to use this class directly. Instead, call
lcdata.read_hdf5within_memoryset to False to read a file.- __init__(path, meta)
Methods
__init__(path, meta)add_meta(meta[, suffix, warn_on_disagreement])Add additional metadata into the dataset.
count_chunks(chunk_size)Count the number of chunks that are in the dataset for a given chunk_size
get_chunk(chunk_idx, chunk_size)Get a chunk from the dataset
get_lc([key])get_sncosmo_lc(key, **kwargs)Get a light curve in sncosmo format.
iterate_chunks(chunk_size)Iterate through the dataset in chunks
load()Load the current dataset into memory.
write_hdf5(path[, append, overwrite, ...])Write the dataset to an HDF5 file