tdb.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  {
  TDB_PATH_DT = 0, TDB_PATH_DFT, TDB_PATH_TC, TDB_PATH_STATIONS,
  TDB_PATH_SENSORLIST, TDB_PATH_LAST
}

Functions

int TDBInit (void)
 data base initialization : read all stations
char * TDBPath (int p, char *s)
 path name based on TDB information
int TDBUpdateHeader (struct InfoHeaderType *h)
 overwrite header information with TDB information


Enumeration Type Documentation

anonymous enum

Enumerator:
TDB_PATH_DT 
TDB_PATH_DFT 
TDB_PATH_TC 
TDB_PATH_STATIONS 
TDB_PATH_SENSORLIST 
TDB_PATH_LAST 

Definition at line 5 of file tdb.h.


Function Documentation

int TDBInit ( void   ) 

data base initialization : read all stations

Parameters:
frame the frame to dump

Definition at line 352 of file tdb.c.

References __scandir(), ADD_CHANNEL_CODE, ADD_LOCATION_CODE, ADD_NETWORK_CODE, confKeyWord, DO_COMPARISON_KW, fileNameOptions, MAX_OSIRIS_CHANNEL, MyGetenv(), PrintDebug, PrintError, PrintLog, PrintStation(), ReadSensorList(), str2time(), TDB_PATH_LAST, TDB_PATH_SENSORLIST, TDB_PATH_STATIONS, TDBAbortParsing(), tdbName, and tdbPaths.

Referenced by ParseOptions().

Here is the call graph for this function:

char* TDBPath ( int  p,
char *  s 
)

path name based on TDB information

Parameters:
p the path to return the station we are working on, may be NULL
Returns:
the path, "." if no path can be defined

Definition at line 299 of file tdb.c.

References PrintError, TDB_PATH_LAST, TDB_PATH_SENSORLIST, tdbName, and tdbPaths.

Referenced by GetExtraTcorr(), GetFrameSkip(), GetInterpolatedShift(), MakeDtFileName(), and ReadSensorList().

int TDBUpdateHeader ( struct InfoHeaderType h  ) 

overwrite header information with TDB information

Parameters:
h the information header to change
Returns:
0 if ok, -1 if the statio was not found

Definition at line 725 of file tdb.c.

References Titan2SRType::base, InfoHeaderType::ch, InfoHeaderType::channel, ChannelName(), InfoHeaderType::correctedTime, Titan2SRType::div, InfoHeaderType::location, InfoHeaderType::network, PrintDebug, PrintError, PrintStation(), InfoHeaderType::sr, InfoHeaderType::station, TDBGetChannel(), and time2str().

Referenced by UpdateInfoHeader().

Here is the call graph for this function:


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