pyrocko.io.css

Reader of CSS wfdisc waveform data.

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

Functions

iload(file_name, load_data, **kwargs)

Iteratively load traces from file.

Classes

CSSHeaderFile(filename)

CSS Header File

class CSSHeaderFile(filename)[source]

Bases: object

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