otf.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <ctype.h>
#include <math.h>
#include <errno.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <dirent.h>
#include <assert.h>
#include <signal.h>
#include <search.h>
#include "common.h"

Include dependency graph for otf.c:

Go to the source code of this file.

Defines

#define MAXSTA   1024

Functions

int ParseMergeTriggerOptions (char *cmd)
int StationIndex (char *sta)
int MergeTriggers (char *cmd)

Variables

int nsta = 0
char station [MAXSTA][16]
unsigned long long trigger [MAXSTA]
int windowLength = 0
int ignoreLength = 0
unsigned long long minsta = 0
time_t CT
int timeDevider = 1


Define Documentation

#define MAXSTA   1024

Definition at line 60 of file otf.c.

Referenced by MergeTriggers(), and StationIndex().


Function Documentation

int MergeTriggers ( char *  cmd  ) 

Definition at line 187 of file otf.c.

References CT, ignoreLength, MAXSTA, minsta, nsta, ParseMergeTriggerOptions(), PrintError, sta, station, StationIndex(), time2str(), timeDevider, trigger, and windowLength.

Referenced by ParseOptions().

Here is the call graph for this function:

int ParseMergeTriggerOptions ( char *  cmd  ) 

Definition at line 70 of file otf.c.

References ignoreLength, minsta, PrintDebug, PrintError, timeDevider, and windowLength.

Referenced by MergeTriggers().

int StationIndex ( char *  sta  ) 

Definition at line 166 of file otf.c.

References MAXSTA, nsta, and station.

Referenced by MergeTriggers().


Variable Documentation

time_t CT

Definition at line 67 of file otf.c.

Referenced by MergeTriggers().

int ignoreLength = 0

Definition at line 65 of file otf.c.

Referenced by MergeTriggers(), and ParseMergeTriggerOptions().

unsigned long long minsta = 0

Definition at line 66 of file otf.c.

Referenced by MergeTriggers(), and ParseMergeTriggerOptions().

int nsta = 0

Definition at line 61 of file otf.c.

Referenced by MergeTriggers(), and StationIndex().

char station[MAXSTA][16]

int timeDevider = 1

Definition at line 68 of file otf.c.

Referenced by MergeTriggers(), and ParseMergeTriggerOptions().

unsigned long long trigger[MAXSTA]

int windowLength = 0

Definition at line 64 of file otf.c.

Referenced by MergeTriggers(), and ParseMergeTriggerOptions().


Generated on Tue Jul 22 23:11:57 2008 for Titan2Reader by  doxygen 1.5.6