pyrocko.squirrel.dataset¶
Portable dataset description.
The Dataset class defines sets of local and remote data-sources to
be used in combination in Squirrel-based programs. By convention,
Squirrel-based programs accept the --dataset option to read such dataset
descriptions from file. To add a dataset programmatically, to a
Squirrel instance, use
add_dataset().
Functions
Get the dict of built-in, ready-to-use example datasets, keyed by their |
|
Build the dict of built-in, ready-to-use example datasets, keyed by their |
|
|
Read dataset description file. |
Classes
|
Dataset description. |
|
Pattern to validate persistent selection names (see |
- class PersistentID(...) str[source]¶
Bases:
StringPatternPattern to validate persistent selection names (see
Selection).
- make_builtin_datasets()[source]¶
Build the dict of built-in, ready-to-use example datasets, keyed by their
':<name>'dataset id (seeread_dataset()).
- get_builtin_datasets()[source]¶
Get the dict of built-in, ready-to-use example datasets, keyed by their
':<name>'dataset id (seeread_dataset()), building it on first call.
- class Dataset(*args, **kwargs)[source]¶
Bases:
HasPathsDataset description.
- ♦ sources¶
listofpyrocko.squirrel.client.base.Sourceobjects, default:[]Local and remote data sources to be added to the squirrel.
- ♦ comment¶
str, optionalDescription of the dataset, for display purposes.
- setup(squirrel, check=True, upgrade=False)[source]¶
Add the dataset’s sources to a squirrel instance.
- Parameters:
squirrel (
Squirrel) – Squirrel instance to be configured.check (bool) – If
True, check file modification times of already indexed local files (slow). IfFalse, use Squirrel’s fast--optimisticmode instead.upgrade (bool) – If
True, automatically migrate any FDSN waveform archives found using an outdated on-disk storage layout.