ObsPy Logo
1.4.0

Getting Started

  • Tutorial
  • Gallery
  • API Overview

Developer Resources

  • Contributing to ObsPy
  • Coding Style Guide
  • Contributor Covenant Code of Conduct
  • Changelog

Indices and Tables

  • Table of Contents
  • Citations
  • Contributors
ObsPy
  • obspy.io.arclink.inventory._is_inventory_xml
  • View page source

obspy.io.arclink.inventory._is_inventory_xml

_is_inventory_xml(path_or_file_object)[source]

Simple function checking if the passed object contains a valid arclink XML 1.0 file. Returns True of False. The test is not exhaustive - it only checks the root tag but that should be good enough for most real world use cases. If the schema is used to test for a StationXML file, many real world files are false negatives as they don’t adhere to the standard.

Parameters:

path_or_file_object – File name or file like object.


© Copyright 2012-2022, The ObsPy Development Team (devs@obspy.org). Last updated on 2022-11-21T14:30:24.

Built with Sphinx 5.3.0 using a theme provided by Read the Docs.