QuakeML An XML schema for seismology Danijel Schorlemmer Silvio Maraini Manfred Baer ETH Zürich,...

Post on 16-Jan-2016

230 views 0 download

Tags:

Transcript of QuakeML An XML schema for seismology Danijel Schorlemmer Silvio Maraini Manfred Baer ETH Zürich,...

QuakeML

An XML schema for seismology

Danijel SchorlemmerSilvio MarainiManfred Baer

ETH Zürich, Swiss Seismological Service, Switzerland

SED

SSS

ETHSwiss Federal Institute of Technology Zürich

ObjectivesSED

SSS

ETH

One catalog format definition for

Data exchange

Network Analysis-softwareNetwork NetworkAnalysis-software Analysis-software

Different seismological aspects

Seismicity analysisTomographyFull waveform analysis

ObjectivesSED

SSS

ETH

Additional Constraints

Use only open standardsOpen source & multi-platform toolsPlatform independentFlexible & extensible

XMLSED

SSS

ETH

Why XML (eXtensible Markup Language)?

Open standards W3C: XML, XPath, XSLT, XLink, XPointer, XML Schema, ...

Open source & multi-platform toolsXerces, Xalan (Apache), libxml2, libxslt (Gnome)

Platform independentASCII-files with defined encodings

Flexible & extensibleXML-Namespaces

XMLSED

SSS

ETH

Different seismological aspectsMulti-level definition

Level Feature1 simple location/origin/time/depth/magnitude2 1 + multiple locations per event3 2 + quality information/general info4 3 + pick times/other station info5 4 + waveforms6 5 + channel info/calibration data7 ...

Example QuakeML Level 1SED

SSS

ETH

<?xml version="1.0"?><events> <event id="0001"> <location main="yes" id="00010002" method="inversion" analysis-type="manual"> <origin-time fixed="no" timezone="UTC" error="00/00/00T00:00:01"> <year>2002</year> <month>05</month> <day>01</day> <hour>01</hour> <minute>11</minute> <second>55.1</second> </origin-time> <latitude fixed="no" unit="degree" error="0">47.23</latitude> <longitude fixed="no" unit="degree" error="0">9.50</longitude> <depth fixed="no" unit="km" error="0.1">3.1</depth> <magnitude fixed="no" type="ML" stations="7" error="0.1">1.6</magnitude> </location> </event> <event id="0002">

...

</event></events>

AdvantagesSED

SSS

ETH

Modern and historic catalogs incomplete origin timesincomplete location and magnitude informationmagnitudes and intensities

XSLT, XPath for creating lower level QuakeML, any XML, HTML, SVG, PDF, ... see Demo!

Inter-level compatibility

Private namespace extensions

Automatic validation possible (XML schema)

Possibilities and Features: XSLTSED

SSS

ETH

XML Transformations:QuakeML + XSL = HTML (PDF, JPG, ...)

XSLT

QuakeML XSL

HTML

Possibilities and Features: NamespacesSED

SSS

ETH

<?xml version="1.0"?><events xmlns="http://quakeml.ethz.ch/ns/quakeml"xmlns:sed="http://sed.ethz.ch/ns/sed">

<event id="0001"> <location main="yes" id="00010002" method="inversion" analysis-type="manual"> <origin-time fixed="no" timezone="UTC" error="00/00/00T00:00:01"> <year>2002</year> <month>05</month> <day>01</day> <hour>01</hour> <minute>11</minute> <second>55.1</second> </origin-time> <latitude fixed="no" unit="degree" error="0">47.23</latitude> <longitude fixed="no" unit="degree" error="0">9.50</longitude>

<sed:coordinates><sed:latitude>237</sed:latitude><sed:longitude>412</sed:longitude>

<sed:coordinates> <depth fixed="no" unit="km" error="0.1">3.1</depth> <magnitude fixed="no" type="ML" stations="7" error="0.1">1.6</magnitude> </location> </event> <event id="0002">

...

</event></events>

Possibilities and Features: Historic CatalogsSED

SSS

ETH

<?xml version="1.0"?><events> <event id="0001"> <location main="yes" id="00010002" method="historic" analysis-type="guess"> <origin-time fixed="no" timezone="UTC" error="00/00/00T06:00:00"> <year>1356</year> <month>10</month> <day>18</day> <hour>1</hour> <minute></minute> <second></second> </origin-time> <latitude fixed="no" unit="degree" error="0.1">47.46</latitude> <longitude fixed="no" unit="degree" error="0.1">7.60</longitude> <depth fixed="no" unit="km" error="5">12</depth> <magnitude fixed="no" type="ML" error="0.5">6.9</magnitude> </location> </event> <event id="0002">

...

</event></events>

OutlookSED

SSS

ETH

Definition of levels 1-4

Review of this definition

Test implementation (SED, SCEC, RELM)

Setup of a QuakeML website Documentation of progressRepository of schemas, stylesheets, etc.