Skip to content

Utilities for dealing with Seismic Data Explorer (SDX)

Notifications You must be signed in to change notification settings

shicks-seismo/SDXutilities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

SDXutilities

  1. sdxtoquakeml: Convert multiple SDX files to single QuakeML catalog using ObsPy inventory Example:
#!/python3
from sdx_utils import sdxtoquakeml
sdxtoquakeml("examples", "test.xml")

This will output an xml formatted file named "test.xml"

  1. quakemltosdx: Convert single QuakeML catalog to SDX file for each event Example:
#!/python3
from sdx_utils import quakemltosdx
quakemltosdx("test.xml",
             "stations.dat",
             ["sdx_crust1.txt", 1.73, 2, 10, 20, 20, 500])

stations.dat is a text file containing station_code, latitude(dd), longitude(dd) and elevation in m. This command will output an SDX file for each event with a filename of [event_id].sdx where event_id is based on the event's origin time and has the format: eYYYYMMDD.HHMMSS.

About

Utilities for dealing with Seismic Data Explorer (SDX)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages