110 likes | 238 Views
Danijel Schorlemmer Silvio Maraini Manfred Baer ETH Z ürich, Swiss Seismological Service, Switzerland. SED. SSS. ETH Swiss Federal Institute of Technology Zürich. QuakeML An XML schema for seismology. SED. SSS. Objectives. ETH. One catalog format definition for Data exchange
E N D
Danijel Schorlemmer Silvio Maraini Manfred Baer ETH Zürich, Swiss Seismological Service, Switzerland SED SSS ETH Swiss Federal Institute of Technology Zürich QuakeMLAn XML schema for seismology
SED SSS Objectives ETH One catalog format definition for Data exchange Network Analysis-software Network Network Analysis-software Analysis-software Different seismological aspects Seismicity analysis Tomography Full waveform analysis
SED SSS Objectives ETH Additional Constraints Use only open standards Open source & multi-platform tools Platform independent Flexible & extensible
SED SSS XML ETH Why XML (eXtensible Markup Language)? Open standards W3C: XML, XPath, XSLT, XLink, XPointer, XML Schema, ... Open source & multi-platform tools Xerces, Xalan (Apache), libxml2, libxslt (Gnome) Platform independent ASCII-files with defined encodings Flexible & extensible XML-Namespaces
SED SSS XML ETH Different seismological aspects Multi-level definition Level Feature 1 simple location/origin/time/depth/magnitude 2 1 + multiple locations per event 3 2 + quality information/general info 4 3 + pick times/other station info 5 4 + waveforms 6 5 + channel info/calibration data 7 ...
SED SSS Example QuakeML Level 1 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>
SED SSS ETH Advantages Modern and historic catalogs incomplete origin times incomplete location and magnitude information magnitudes 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)
SED SSS Possibilities and Features: XSLT ETH XML Transformations: QuakeML + XSL = HTML (PDF, JPG, ...) XSLT QuakeML XSL HTML
SED SSS Possibilities and Features: Namespaces 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>
SED SSS Possibilities and Features: Historic Catalogs 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>
SED SSS Outlook ETH Definition of levels 1-4 Review of this definition Test implementation (SED, SCEC, RELM) Setup of a QuakeML website Documentation of progress Repository of schemas, stylesheets, etc.