import dascore as dc
from dascore.utils.downloader import fetch
# Get a spool from a single file
= fetch("example_dasdae_event_1.h5")
single_file_path = dc.spool(single_file_path)
file_spool
# get a spool from a directory of files
= fetch("example_dasdae_event_1.h5").parent
directory_path = dc.spool(directory_path)
directory_spool
# get a spool from a single patch
= dc.get_example_patch()
patch = dc.spool(patch) spool
spool
Create a spool from a data source.
This is the main function for loading in DASCore.
Parameters
Parameter | Description |
---|---|
obj | An object from which a spool can be derived. |