obspy.io.sac.core._is_sac_xy
- _is_sac_xy(filename)[source]
Checks whether a file is alphanumeric SAC file or not.
- Parameters:
filename (str, open file, or file-like object) – Alphanumeric SAC file to be checked.
- Return type:
- Returns:
True
if a alphanumeric SAC file.
Example
>>> from obspy.core.util import get_example_file >>> _is_sac_xy(get_example_file('testxy.sac')) True >>> _is_sac_xy(get_example_file('test.sac')) False