io

module of dascore.utils source

Utilities for basic IO tasks.

Functions

Name Description
get_handle_from_resource Get a handle for a file of preferred type.
obspy_to_patch Convert an obspy stream to a patch.
patch_to_obspy Convert a patch to an ObsPy Stream.
patch_to_xarray Return a data array with patch contents.
xarray_to_patch Convert an xarray dataarray to a patch.

Classes

Name Description
BinaryReader Base file for binary things.
BinaryWriter Dummy class for streams which write binary.
IOResourceManager A class for managing opening/closing files.