Convert hypoDD.reloc event catalogs to quakeML

Hi obspy users,

I am looking at using obspy to convert relocated event catalogs produced by hypoDD (hypoDD.reloc files) to the quakeML format, for distribution of the resulting catalog.

hypoDD reloc files are ascii files, 1 line per event, with event latitude, longitude, depth, date/time, and magnitude.

I see that currently there is no option to read in hypoDD reloc files in obspy.core.event.read_events.
What approach would you recommend to do this import?

Thanks for the advice,


There is some useful code in hypoddpy

see _create_output_event_file in