obspy.io.sac.util._clean_str

_clean_str(value, strip_whitespace=True)[source]

Remove null values and whitespace, return a str

This fn is used in two places: in SACTrace.read, to sanitize strings for SACTrace, and in sac_to_obspy_header, to sanitize strings for making a Trace that the user may have manually added.