pyrocko.config

User configuration file handling.

Classes

ConfigBase(**kwargs)

Undocumented.

PathWithPlaceholders(...)

Path, possibly containing placeholders.

PyrockoConfig(**kwargs)

Undocumented.

SnufflerConfig(**kwargs)

Undocumented.

VisibleLengthSetting(**kwargs)

Undocumented.

class PathWithPlaceholders(...) str[source]

Bases: String

Path, possibly containing placeholders.

class VisibleLengthSetting(**kwargs)[source]

Bases: Object

Undocumented.

key

str

value

float

class ConfigBase(**kwargs)[source]

Bases: Object

Undocumented.

class SnufflerConfig(**kwargs)[source]

Bases: ConfigBase

Undocumented.

visible_length_setting

list of VisibleLengthSetting objects, default: [<pyrocko.config.VisibleLengthSetting object at 0x7f52b5315b90>, <pyrocko.config.VisibleLengthSetting object at 0x7f52b4eea110>, <pyrocko.config.VisibleLengthSetting object at 0x7f52b4eea1d0>, <pyrocko.config.VisibleLengthSetting object at 0x7f52b4eea090>]

phase_key_mapping

dict of str objects, default: {'F1': 'P', 'F2': 'S', 'F3': 'R', 'F4': 'Q', 'F5': '?'}

demean

bool, default: True

show_scale_ranges

bool, default: False

show_scale_axes

bool, default: False

trace_scale

str, default: 'individual_scale'

show_boxes

bool, default: True

clip_traces

bool, default: True

first_start

bool, default: True

class PyrockoConfig(**kwargs)[source]

Bases: ConfigBase

Undocumented.

cache_dir

str (PathWithPlaceholders), default: '~/.pyrocko/cache'

earthradius

float, default: 6371000.0

fdsn_timeout

float, optional

gf_store_dirs

list of str (PathWithPlaceholders) objects, default: []

gf_store_superdirs

list of str (PathWithPlaceholders) objects, default: []

topo_dir

str (PathWithPlaceholders), default: '~/.pyrocko/topo'

tectonics_dir

str (PathWithPlaceholders), default: '~/.pyrocko/tectonics'

geonames_dir

str (PathWithPlaceholders), default: '~/.pyrocko/geonames'

crustdb_dir

str (PathWithPlaceholders), default: '~/.pyrocko/crustdb'

gshhg_dir

str (PathWithPlaceholders), default: '~/.pyrocko/gshhg'

volcanoes_dir

str (PathWithPlaceholders), default: '~/.pyrocko/volcanoes'

fault_lines_dir

str (PathWithPlaceholders), default: '~/.pyrocko/fault_lines'

colortables_dir

str (PathWithPlaceholders), default: '~/.pyrocko/colortables'

leapseconds_path

str (PathWithPlaceholders), default: '~/.pyrocko/leap-seconds.list'

leapseconds_url

str, default: 'https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list'

earthdata_credentials

tuple of 2 str objects, optional

gui_toolkit

str (pyrocko.guts.StringChoice), default: 'auto'

use_high_precision_time

bool, default: False