obspy.io.nordic.core._write_nordic

_write_nordic(event, filename, userid='OBSP', evtype='L', outdir='.', wavefiles=None, explosion=False, nordic_format='OLD', overwrite=True, string_io=None, high_accuracy=True)[source]

Write an Event to a nordic formatted s-file.

Parameters
  • event (Event) – A single obspy event

  • filename (str) – Filename to write to, can be None, and filename will be generated from the origin time in nordic format.

  • userid (str) – Up to 4 character user ID

  • evtype (str) – Single character string to describe the event, either L, R or D.

  • outdir (str) – Path to directory to write to

  • wavefiles (list) – Waveforms to associate the nordic file with

  • explosion (bool) – Note if the event is an explosion, will be marked by an E.

  • nordic_format (str) – nordic_format of Nordic format to be used for output, either OLD or NEW.

  • overwrite (bool) – force to overwrite old files, defaults to False

  • string_io (io.StringIO) – If given, will write to the StringIO object in memory rather than to the filename.

  • high_accuracy (bool) – Whether to output pick seconds at 6.3f (high_accuracy) or 5.2f (standard)

Returns

str: name of nordic file written

Note

Seisan can find waveforms either by their relative or absolute path, or by looking for the file recursively in directories within the WAV directory in your seisan install. Because all lines need to be less than 79 characters long (fortran hangover) in the s-files, you will need to determine whether the full-path is okay or not.