obspy.io.sac.arrayio.header_arrays_to_dict

header_arrays_to_dict(hf, hi, hs, nulls=False, encoding='ASCII')[source]

Convert SAC header arrays to a more user-friendly dict.

Parameters:
  • hf (numpy.ndarray of floats) SAC float header array.
  • hi (numpy.ndarray of ints) SAC int header array.
  • hs (numpy.ndarray of strings) SAC string header array.
  • nulls (str) If True, return all header values, including nulls, else omit them.
  • encoding Encoding string that passes the user specified encoding scheme.
Returns:

SAC header dictionary

Return type:

dict