io
Utilities for basic IO tasks.
Functions
| Name | Description |
|---|---|
| ensure_local_file | Return a stable local path for one resource for the current session. |
| 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. |
| release_handle | Release a file handle, closing it or discarding its uncommitted work. |
| xarray_to_patch | Convert an xarray dataarray to a patch. |
Classes
| Name | Description |
|---|---|
| BinaryReader | Base file for reading binary files. |
| BinaryWriter | Dummy class for streams which write binary. |
| IOResourceManager | A class for managing opening/closing files. |
| LocalBinaryReader | A binary reader which first materializes remote resources locally. |
| LocalPath | A local path adapter for callsites that require a concrete filename. |
| TextReader | Base class for reading text files. |
| TextWriter | Base class for writing text files. |