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

rw_glevt.h

Go to the documentation of this file.
00001 
00002 /*
00003  *   THIS FILE IS UNDER RCS - DO NOT MODIFY UNLESS YOU HAVE
00004  *   CHECKED IT OUT USING THE COMMAND CHECKOUT.
00005  *
00006  *    $Id: rw__glevt_8h-source.html 2161 2006-05-19 16:55:03Z paulf $
00007  *
00008  *    Revision history:
00009  *     $Log$
00009  *     Revision 1.1  2006/05/19 16:55:02  paulf
00009  *     first inclusion
00009  *
00010  *
00011  */
00012 
00013 #include <limits.h>
00014 #include <ewdb_ora_api.h>
00015 #include <ew_event_info.h>
00016 
00017 #define PHASE_NAME_LEN  10
00018 
00019 
00020 /* Structure of info read from global archive message
00021  **************************************************/
00022 typedef struct Glarc_sum_struct {
00023         long    qid;       /* event id from binder */
00024         double  ot;        /* origin time as sec since 1600   */
00025         float   lat;       /* latitude (North=positive)       */
00026         float   lon;       /* longitude(East=positive)        */
00027         float   z;         /* depth (down=positive)           */
00028         int     nph;       /* number of phases w/ weight >0.1 */
00029         int     gap;       /* maximum azimuthal gap           */
00030         int     dmin;      /* distance (km) to nearest station*/
00031         float   rms;       /* RMS travel time residual        */
00032 } GlarcSum;
00033 
00034 /* Structure to hold raw pick info from a phase line & its shadow
00035  ****************************************************************/
00036 typedef struct Glarc_pck_struct {
00037         char    sta[6];                                         /* site code */
00038         char    net[3];                                         /* seismic network code */
00039         char    comp[4];                                        /* station component code */
00040         char    phase[PHASE_NAME_LEN];          /* phase label */
00041         double  at;                                             /* arrival-time as sec since 1600 */
00042         char    fm;                                             /* first motion */
00043         char    wt;                                             /* phase weights */
00044         int     caav[6];                                        /* Average Amplitude for ccntr[x] */
00045         int     codalen;                                        /* Coda duration time */
00046         int     codawt;                                         /* Coda weight */
00047         char    onset;                                          /* Phase onset */
00048         long      pamp[3];                                      /* amplitudes */
00049 } GlarcPhase;
00050 
00051 /* Function Prototypes
00052  *********************/
00053 int     write_glevt_sumcard (GlarcSum *pSum, char *sumcard);
00054 int     write_glevt_phasecard (GlarcPhase *pPhs, char *phscard);
00055 
00056 int     read_glevt_sumcard (GlarcSum *pSum, char *sumcard);
00057 int     read_glevt_phasecard (GlarcPhase *pPhs, char *phasecard);
00058 
00059 int             GlEvt2EWEvent (EWEventInfoStruct *pEWEvent, char *pGlEvt, int GlEvtLen);
00060 
00061 

Generated on Tue May 6 09:16:08 2003 for Earthworm Libs by doxygen1.3-rc3