obspy.io.sac.arrayio.header_arrays_to_dict

header_arrays_to_dict(hf, hi, hs, nulls=False)[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 (bool) If True, return all header values, including nulls, else omit them.
Returns:

SAC header dictionary

Return type:

dict