obspy.zmap.core.isZmap

isZmap(*args, **kwargs)[source]

Checks whether a file is ZMAP format.

Unlike readZmap() isZmap 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

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