- Event Message
- Category
- Message Type
- Original System
- CoreID (Unique ID from EEW System)
- Magnatude
- Magnatude Uncetainity
- Latitude (original earthquake latitude)
- Latitude Uncertainity
- Longitude
- Longitude Uncertainity
- Depth
- Depth Uncertainity
- Likelihood
- Original Time
- Original Time Uncertainity
Last active
December 14, 2017 17:17
-
-
Save hunterowens/2036e6295ce1d6cd15225f407b7300b1 to your computer and use it in GitHub Desktop.
earthquake_mesage_example.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type DMEvent struct { | |
XMLName xml.Name `xml:"event_message"` | |
Category string `xml:"category,attr"` | |
MsgType string `xml:"message_type,attr"` | |
OrigSys string `xml:"orig_sys,attr"` | |
Version string `xml:"version,attr"` | |
Description string `xml:",innerxml"` | |
Core []DMCore `xml:"core_info"` | |
ElarmsMsg []ElarmsMsg `xml:"elarms_info"` | |
OnsiteMsg []OnsiteMsg `xml:"onsite_info"` | |
VSMsg []VSMsg `xml:"vs_info"` | |
} | |
// DMCore is the core of the dm xml fields | |
type DMCore struct { | |
Corename xml.Name `xml:"core_info"` | |
CoreID string `xml:"id,attr"` | |
Mag string `xml:"mag"` | |
MagUncer string `xml:"mag_uncer"` | |
Lat string `xml:"lat"` | |
LatUncer string `xml:"lat_uncer"` | |
Lon string `xml:"lon"` | |
LonUncer string `xml:"lon_uncer"` | |
Depth string `xml:"depth"` | |
DepthUncer string `xml:"depth_uncer"` | |
OrigTime string `xml:"orig_time"` | |
OrigTimeUncer string `xml:"orig_time_uncer"` | |
Likelihood string `xml:"likelihood"` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment