obspy.io.zmap.core._is_zmap

_is_zmap(filename)[source]

Checks whether a file is ZMAP format.

Unlike _read_zmap() _is_zmap is strict, i.e. it will not detect a ZMAP file unless it consists of exactly 10 or 13 numerical columns.

Parameters:

filename (str or file) – ZMAP string, name of the file to be checked or open file-like object.

Return type:

bool

Returns:

True if ZMAP file.

Example

>>> _is_zmap('/path/to/zmap_events.txt')
True