pyrocko.io.css

logger = <Logger pyrocko.io.css (WARNING)>

See http://nappe.wustl.edu/antelope/css-formats/wfdisc.htm for file format reference.

exception CSSWfError(**kwargs)[source]
class CSSHeaderFile(filename)[source]

CSS Header File

Parameters:filename – filename of css header file

Note, that all binary data files to which the underlying header file points to will be loaded at once. It is therefore recommended to split header files for large data sets

read_wf_file(fn, nbytes, dtype, foff=0)[source]

Read binary waveform file

Parameters:
  • fn – filename
  • nbytes – number of bytes to be read
  • dtype – datatype string
read()[source]

Read header file.

iload(file_name, load_data, **kwargs)[source]

Iteratively load traces from file.

Parameters:
  • file_name – css header file name
  • load_data – whether or not to load binary data