#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <sys/types.h>
#include <time.h>
#include <earthworm.h>
#include <chron3.h>
#include <kom.h>
#include <swap.h>
#include <k2evt2ew.h>
Go to the source code of this file.
Defines | |
#define | PACKET_MAX_SIZE 3003 |
#define | GRAVITY 978.03 |
#define | SWAP(a, b) temp=(a);(a)=(b);(b)=temp |
#define | DECADE 315532800 |
Functions | |
int | read_tag (FILE *fp, KFF_TAG *) |
int | read_head (FILE *fp, MW_HEADER *, int tagLength) |
int | read_frame (FILE *fp, FRAME_HEADER *, unsigned long *channels) |
int | extract (int pktdatalen, const unsigned char *pktbuff, float *Data, long *Counts, float scale, int nchan, int jchan, int *ind) |
int | peak_ground (float *Data, int npts, int itype, float dt, SM_INFO *sm) |
void | demean (float *A, int N) |
void | locut (float *s, int nd, float fcut, float delt, int nroll, int icaus) |
void | rdrvaa (float *acc, int na, float omega, float damp, float dt, float *rd, float *rv, float *aa) |
void | amaxper (int npts, float dt, float *fc, float *amaxmm, float *aminmm, float *pmax, int *imin, int *imax) |
int | k2evt2ew (FILE *fp, char *fname, K2InfoStruct *pk2info, CHANNELNAME *pChanName, int numChans, char *NetCode, int Debug) |
Variables | |
int | K2EW_Debug |
|
Definition at line 39 of file k2evt2ew.c. |
|
Definition at line 37 of file k2evt2ew.c. Referenced by k2evt2ew(). |
|
Definition at line 36 of file k2evt2ew.c. Referenced by k2evt2ew(). |
|
Definition at line 38 of file k2evt2ew.c. |
|
Definition at line 1103 of file k2evt2ew.c. Referenced by peak_ground(). |
|
Definition at line 919 of file k2evt2ew.c. Referenced by peak_ground(). |
|
Definition at line 716 of file k2evt2ew.c. References SwapLong(). Referenced by k2evt2ew(). |
|
|
Definition at line 961 of file k2evt2ew.c. Referenced by peak_ground(). |
|
Definition at line 767 of file k2evt2ew.c. References amaxper(), demean(), id, locut(), MAXTRACELTH, _SM_INFO::nrsa, _SM_INFO::pdrsa, _SM_INFO::pga, _SM_INFO::pgd, _SM_INFO::pgv, rdrvaa(), _SM_INFO::rsa, _SM_INFO::t, _SM_INFO::tpga, _SM_INFO::tpgd, and _SM_INFO::tpgv. Referenced by k2evt2ew(). |
|
Definition at line 1042 of file k2evt2ew.c. Referenced by peak_ground(). |
|
Definition at line 643 of file k2evt2ew.c. References FRAME_HEADER::blockTime, FRAME_HEADER::blockTime2, FRAME_HEADER::channelBitMap, FRAME_HEADER::channelBitMap1, EW_FAILURE, EW_SUCCESS, FRAME_HEADER::frameSize, FRAME_HEADER::frameStatus, FRAME_HEADER::frameStatus2, FRAME_HEADER::frameType, FRAME_HEADER::instrumentCode, K2EW_Debug, logit(), FRAME_HEADER::msec, FRAME_HEADER::recorderID, FRAME_HEADER::streamPar, and SwapShort(). Referenced by k2evt2ew(). |
|
|
Definition at line 266 of file k2evt2ew.c. References KFF_TAG::byteOrder, KFF_TAG::checksum, KFF_TAG::dataLength, EW_FAILURE, EW_SUCCESS, KFF_TAG::id, KFF_TAG::instrumentType, K2EW_Debug, KFF_TAG::length, logit(), SwapLong(), SwapShort(), KFF_TAG::sync, KFF_TAG::type, and KFF_TAG::version. Referenced by k2evt2ew(). |
|
Definition at line 43 of file k2evt2ew.c. Referenced by k2evt2ew(), read_frame(), read_head(), and read_tag(). |