obspy.io.sac.core._internal_is_sac

_internal_is_sac(buf)[source]

Checks whether a file-like object contains a SAC file or not.

Parameters

buf (file-like object or open file) – SAC file to be checked.

Return type

bool

Returns

True if a SAC file.