obspy.io.sac.arrayio
Low-level array interface to the SAC file format.
Functions in this module work directly with NumPy arrays that mirror the SAC format. The ‘primitives’ in this module are the float, int, and string header arrays, the float data array, and a header dictionary. Convenience functions are provided to convert between header arrays and more user-friendly dictionaries.
These read/write routines are very literal; there is almost no value or type checking, except for byteorder and header/data array length. File- and array- based checking routines are provided for additional checks where desired.
Public Functions
Returns null hf, hi, hs arrays, optionally filled with values from a dictionary. |
|
Convert SAC header arrays to a more user-friendly dict. |
|
Initialize arbitrary header arrays. |
|
Read a SAC binary file. |
|
Read a SAC ASCII/Alphanumeric file. |
|
Check validity of loaded SAC file content, such as header/data consistency. |
|
Write the header and (optionally) data arrays to a SAC binary file. |
|
Write the header and (optionally) data arrays to a SAC ASCII file. |