obspy.io.xseed.parser.is_xseed

is_xseed(path_or_file_object)[source]

Simple function checking if the passed object contains a XML-SEED file. Returns True of False. Only checks the name of the root tag, which should be “xseed”.

>>> from obspy.core.util import get_example_file
>>> xseed_file = get_example_file("dataless.seed.BW_FURT.xml")
>>> is_xseed(xseed_file)
True
>>> stationxml_file = get_example_file("IU_ANMO_00_BHZ.xml")
>>> is_xseed(stationxml_file)
False
Parameters:

path_or_file_object – File name or file like object.