Main Page Class Hierarchy Compound List File List Compound Members File Members

# make_triglist.h

Go to the documentation of this file.

    00001 /*
    00002  *   THIS FILE IS UNDER RCS - DO NOT MODIFY UNLESS YOU HAVE
    00003  *   CHECKED IT OUT USING THE COMMAND CHECKOUT.
    00004  *
    00005  *    $Id: make__triglist_8h-source.html,v 1.1 2006/05/19 16:55:02 paulf Exp $
    00006  *
    00007  *    Revision history:
    00008  *     $Log: make__triglist_8h-source.html,v $
    00008  *     Revision 1.1  2006/05/19 16:55:02  paulf
    00008  *     first inclusion
    00008  *
    00009  *     Revision 1.1  2001/07/01 22:01:48  davidk
    00010  *     Initial revision
    00011  *
    00012  *
    00013  *
    00014  ************************************************************/
    00015
    00016 /* DK Added prototypes for make_triglist library functions  06/27/2001 */
    00017 /* Functions in make_triglist.c */
    00018 int writetrig_init( char* trigFileBase, char* outputDir );
    00019 /******************************************************************
    00020  * writetrig_init():
    00021  *
    00022  * trigFileBase: The base filename used for each trigger file.
    00023  *
    00024  * outputDir:    The directory used for each trigger file.
    00025  * so the trigger filenames will look something like:
    00026  * <outputDir>/<trigFileBase>.trg_<Date>
    00027  *
    00028  * Function initializes the trigger writing environment.
    00029  ******************************************************************/
    00030
    00031 int writetrig( char *note, char* filename, char* outDir );
    00032 /******************************************************************
    00033  * writetrig():
    00034  *
    00035  * note:     The text of the trigger that is written out to the
    00036  * trigger file.
    00037  *
    00038  * filename:  Passed to writetrig_init() as trigFileBase if the
    00039  * environment has not yet been initialized.  See writetrig_init()
    00040  * for a description.
    00041  *
    00042  * outDir:   Passed to writetrig_init() as outputDir if the
    00043  * environment has not yet been initialized.  See writetrig_init()
    00044  * for a description.
    00045  *
    00046  * Function writes information to a trigger file.  The function will
    00047  * initialize the trigger writing environment, if it is not already
    00048  * initialized.
    00049  ******************************************************************/
    00050
    00051 void writetrig_close();
    00052 /******************************************************************
    00053  * writetrig_close():
    00054  *
    00055  * Function shuts down the trigger writing environment.(closes
    00056  * file ptr)
    00057  ******************************************************************/
    00058
    00059
    00060 void bldtrig_head( char* trigmsg, double otime, char* evId, char* author);
    00061 /******************************************************************
    00062  * bldtrig_head():
    00063  *
    00064  * trigmsg:  Trigger message EVENT line created by the function.
    00065  *
    00066  * otime:    Origin time. (seconds since 1600)
    00067  *
    00068  * evId:     EVENT ID that the author gave to the event.
    00069  *
    00070  * author:   Author of the event.
    00071  *
    00072  * Function builds the EVENT line of a trigger message
    00073  * Modified for author id by alex
    00074  ******************************************************************/
    00075
    00076
    00077
    00078 void bldtrig_phs(char *trigmsg, char* sta, char* comp, char* net,
    00079                  char ph, double pickTime, double saveStart, double durSave);
    00080 /******************************************************************
    00081  * bldtrig_phs():
    00082  *
    00083  * trigmsg:  Trigger message PHASE line created by the function.
    00084  *
    00085  * sta:      SEEDesque Station code of the channel for which this
    00086  * line is being built.
    00087  *
    00088  * comp:     SEEDesque Component code of the channel for which this
    00089  * line is being built.
    00090  *
    00091  * net:      SEEDesque Network code of the channel for which this
    00092  * line is being built.
    00093  *
    00094  * ph:       One character phase label.
    00095  *
    00096  * pickTime: Pick time of the phase.  (Seconds since 1600)
    00097  *
    00098  * saveStart:Time that data should begin to be saved.
    00099  * (Seconds since 1600)
    00100  *
    00101  * durSave:  Seconds of data to save starting at saveStart.
    00102  *
    00103  * Function builds the "phase" lines of a trigger message.  One
    00104  * line per call.
    00105  *
    00106  * DavidK 06/28/2001  Does anyone even use this function.  Arc2trig
    00107  * and Arc2trigII each have their own.
    00108  ******************************************************************/
    00109
    00110 char *make_datestr(double t, char *datestr);
    00111 /*********************************************************************
    00112  * make_datestr()  takes a time in seconds since 1600 and converts   *
    00113  *                 it into a character string in the form of:        *
    00114  *                   "19880123 12:34:12.21"                          *
    00115  *                 It returns a pointer to the new character string  *
    00116  *                                                                   *
    00117  *    NOTE: this requires an output buffer >=21 characters long      *
    00118  *                                                                   *
    00119  *  Y2K compliance:                                                  *
    00120  *     date format changed to YYYYMMDD                               *
    00121  *     date15() changed to date17()                                  *
    00122  *                                                                   *
    00123  *********************************************************************/
    00124
    00125 /* End of Functions in make_triglist.c */
    00126