Convert quakeML to hypoinverse format for hyp2000

Hello All,

I would like to convert quakeML to hypoinverse format in order to run hyp2000 for earthquake relocation. Is there a way in obspy to do that?

Thank you very much,
Junli

Hi Junli,

welcome to the forum.

ObsPy does not have hypoinverse write support.

You find a list of supported formats for Catalog.write() in the documentation.

https://docs.obspy.org/packages/autogen/obspy.core.event.catalog.Catalog.write.html

Hello @trichter,

Thank you very much for your reply!
Got it.

Best,
Junli

Hello @Junli_Zhang
Are you able to figure out the Quakeml to Hypo2000 conversion? Any support will be of great help.
Regards
MP

I’m pretty sure this is writing out data in the format you are talking about:

1 Like

If it is, just a heads up on two issues:

  • that file format only allows 4 characters for station codes, so you will have to do some kind of mapping back and forth when writing input for hypo inverse and when loading back its output
  • since S phase is written as “time after P” I think you can’t use stations with only an S wave set (at least thats what I figured back then)
1 Like

Thank you. Will definitely try this out.

1 Like

I tried using it but had some issue running it. Amy help?

Well, you can’t just run it since it’s embedded in a workflow, you’ll have to copy/paste and adjust the parts that create the output from the event data

1 Like