krischer / wfs_input_generator

API to generate input files for many different seismic waveform solvers
http://krischer.github.io/wfs_input_generator
4 stars 2 forks source link

Halfduration #1

Open msimon00 opened 11 years ago

msimon00 commented 11 years ago

i would need to add the information for the half-duration from the global cmt solution to the event information. how do i make sure i will get it in this input_generator framework?

krischer commented 11 years ago

Hmm. Interesting problem.

It would be possible to expose the underlying Event object to each writer. That way you can see if the Event contains the half-duration. Another option would be to append it to the event dictionary if it is available. The writer that needs it is then responsible for raising an error if it does not exists. That mechanism could also be extended to other, optional event attributes. I guess that is the way to go.