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

# k2evt2ew.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: k2evt2ew_8h-source.html,v 1.1 2006/05/19 16:55:02 paulf Exp $
    00006  *
    00007  *    Revision history:
    00008  *     $Log: k2evt2ew_8h-source.html,v $
    00008  *     Revision 1.1  2006/05/19 16:55:02  paulf
    00008  *     first inclusion
    00008  *
    00009  *     Revision 1.1  2002/03/22 19:53:47  lucky
    00010  *     Initial revision
    00011  *
    00012  *
    00013  */
    00014
    00015
    00016 #include <kwhdrs_ew.h>
    00017 #include <rw_strongmotionII.h>
    00018
    00019 #define         MAX_CHANS_PER_BOX               24
    00020 #define         MAX_SM_PER_BOX                  20
    00021 #define         MAXTRACELTH                     20000
    00022
    00023
    00024 #define SM_BOX_LEN       25   /* maximum length of a box name               */
    00025 #define SM_MAX_CHAN      18   /* max number chans on one strongmotion box   */
    00026
    00027 /* Structure Definitions
    00028  ***********************/
    00029 typedef struct _k2info
    00030 {
    00031
    00032         KFF_TAG                 tag;
    00033         MW_HEADER               head;
    00034         FRAME_HEADER    frame;
    00035         SM_INFO                 sm[MAX_SM_PER_BOX];
    00036         float                   Databuf[MAX_CHANS_PER_BOX][MAXTRACELTH];
    00037         long                    Counts[MAX_CHANS_PER_BOX][MAXTRACELTH];
    00038         int                             numDataPoints[MAX_CHANS_PER_BOX];
    00039
    00040 } K2InfoStruct;
    00041
    00042
    00043 typedef struct _CHANNELNAME_ {
    00044    char box[SM_BOX_LEN];      /* Installation-assigned box name (or serial#) */
    00045    int  chan;             /* Channel number on this box                  */
    00046    char sta[TRACE_STA_LEN];   /* NTS: Site code as per IRIS SEED */
    00047    char comp[TRACE_CHAN_LEN]; /* NTS: Channel/Component code as per IRIS SEED*/
    00048    char net[TRACE_NET_LEN];   /* NTS: Network code as per IRIS SEED */
    00049    char loc[TRACE_LOC_LEN];   /* NTS: Location code as per IRIS SEED */
    00050 } CHANNELNAME;
    00051
    00052
    00053
    00054 int k2evt2ew (FILE *fp, char *fname, K2InfoStruct *pk2info, CHANNELNAME *pChanName,
    00055                             int numChans, char *NetCode, int Debug);
    00056