The seismograms are written to sac files in the location indicated by location. If multiple seismograms are found for a channel seismograms past the first will be written out with a number appended to their file name. ie the second seismogram will be filename.1 and the third will be filename.2.

The phaseTimeHeader element will cause the travel time of the given phase to be placed in the sac header corresponding to the tHeader element. tHeader can be 0-9 as well as a. In the case of 0-9, the ray parameter is inserted into the corresponding userX header as rad/sec. In the case of triplicated phases, the arrivalIndex can be used to pick an arrival different from the first. The default is 1, yeilding the first arrival. If this is set to 2, the second arrival is used and if it is set to -1 then the last arrival is used. See the TauP user manual,, for the phase naming convention.

If the littleEndian element is added to the sacWriter, it will write out sac files in Intel processor style little endian byte order. It defaults to writing in big endian order.

The sacHeaderScript allows manipulation of the sac file before it is written. This is a type of script similar to seismogramScript. The event is put as "event", the channel as "channel" and the sac file as "sac".


    <sacHeaderScript type="jython">
        from import SacConstants
        h = sac.getHeader()
        h.evdp = h.evdp/1000 # to make depth in km instead of meters

This consists of


<phaseTimeHeader> Any number of times </phaseTimeHeader>
<sacHeaderScript> Any number of times
An attribute named type with a value of Any Text Any text
<littleEndian/> optional

Places this can be found

In seismogramProcess there is a choice between all of the following