CUBE / ANSS-EQ-XML Translations

 

CUBE-to-ANSS-EQ-XML Translation

 

Location Method / Algorithm:

 

  CUBE

Location           ANSS-EQ-XML  Origin | Method |

 Method           Algorithm       /         Class

-------------------------------------------------------------------

    A   =>   "Binder"             "Carol Johnson stack"

    D   =>   "Antelope"           "Geiger's Method & Least Squares"

    F   =>   "NonNEIC-furnished"  "Unknown"

    L   =>   "Hypoinverse"        "Geiger's Method & Least Squares"

    H   =>   "Hypoinverse"        "Geiger's Method & Least Squares"

    M   =>   "Macroseismic"       "Reported"

    R   =>   "Hydra"              "Geiger's Method & Least Squares"

    ?   =>   "?"                  "Unknown"

 

(Note:  '?' is any unrecognized CUBE-Location-Method character)

 

 

Magnitude Type:

 

  CUBE    ANSS-EQ-XML  Origin |

Magnitude     Magnitude |

  Type         TypeKey

-------------------------------

    C     =>    "Md"

    D     =>    "Md"

    E     =>    "Me"

    G     =>    "Ml"

    I     =>    "Mi"

    L     =>    "Ml"

    N     =>    "MbLg"

    O     =>    "Mw"

    P     =>    "Mb"

    B     =>    "Mb"

    S     =>    "Ms"

    T     =>    "Mt"

    W     =>    "Mw"

    ?     =>    "?"

 

(Note:  '?' is any unrecognized CUBE-Magnitude-Type character)

 

 

___________________________________________________

 

 

 

ANSS-EQ-XML-to-CUBE Translation

 

Location Method / Algorithm:

 

                            CUBE

 ANSS-EQ-XML  Origin |    Location

  Method | Algorithm       Method

----------------------------------

 "Binder"              =>    A

 "Antelope"            =>    D

 "NonNEIC-furnished"   =>    F

 "Hypoinverse"         =>    H

 "Macroseismic"        =>    M

 "Hydra"               =>    R

 "*"                   =>    U

 

(Note:  "*" is any unrecognized Algorithm string)

(Note:  If the "Origin | Method | Comment" element contains text in the form "CUBE_Code X" then the specified character 'X' will be used for the CUBE-Location-Method value)

 

 

Magnitude Type:

 

ANSS-EQ-XML

  Origin |        CUBE

 Magnitude |    Magnitude

  TypeKey         Type

---------------------------------

  "Md"     =>      D

  "Me"     =>      E

  "Mi"     =>      I

  "Ml"     =>      L

  "MbLg"   =>      N

  "Mb"     =>      B

  "Ms"     =>      S

  "Mt"     =>      T

  "Mw"     =>      W

  "*"      =>      ' ' (space character)

 

(Note:  "*" is any unrecognized TypeKey string)

(Note:  If the "Origin | Magnitude | Comment" element contains text in the form "CUBE_Code X" then the specified character 'X' will be used for the CUBE-Magnitude-Type value)

 

___________________________________________________

 

 

In the QWIDS/EIDS code, the 'com.isti.quakewatch.util.CubeCodeTranslator' class in the "QWLibs/QuakeWatch/QWCommon" project implements the translations specified above.

 

In QWIDS/EIDS, CUBE-to-ANSS-EQ-XML translation happens in the 'CubeAnssEQParser' class that may be used with a QWServer feeder.  ANSS-EQ-XML-to-CUBE translation happens in the 'QWCubeOutClient' program.

 

___________________________________________________

 

 

Message Test Utilities

 

     Several test utilities are available in QWIDS/EIDS to simulate the translation of CUBE-format messages to and from XML-format messages.  Scripts and batch files are provided for executing these utilities.

 

     In the QWServer distribution are the following:

runCubeToAnssEQXML - Unix script for launching the CubeToAnssEQXML test utility.

runCubeToAnssEQXML.bat - Windows batch file for launching the CubeToAnssEQXML test utility.

runCubeToQWXML - Unix script for launching the CubeToQWXML test utility.

runCubeToQWXML.bat - Windows batch file for launching the CubeToQWXML test utility.

     CubeToAnssEQXML converts CUBE-format messages to ANSS-EQ-XML-format messages. The CUBE-format messages may be entered as command-line arguments or via 'stdin'.  The generated XML-format messages are sent to 'stdout'.

     CubeToQWXML converts CUBE-format messages to QuakeWatch-XML-format messages.  The CUBE-format messages may be entered as command-line arguments or via 'stdin'.  The generated XML-format messages are sent to 'stdout'.

 

     In the QWCubeOutClient distribution are the following:

runCubeOutFromXML - Unix script for launching the CubeOutFromXML test utility.

runCubeOutFromXML.bat - Windows batch file for launching the CubeOutFromXML test utility.

     CubeOutFromXML converts XML-format messages to CUBE-format messages.  The given XML-format messages may be in ANSS-EQ-XML or "QuakeWatch" format.  The XML-format messages may be entered as command-line arguments, a single XML-format message may be entered via 'stdin', or a file containing a single XML-format message may be specified by entering "-i" followed by the file name as command-line arguments.  The 'EQMessage' (ANSS-EQ-XML format) or 'Event' (QuakeWatch format) element in the message may be (optionally) surrounded by 'DataMessage' and 'QWmessage' elements.  The generated CUBE-format messages are sent to 'stdout'.

 

 

3/5/2009 -- [ET]