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: site_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 * Revision 1.1 2000/02/14 20:05:54 lucky 00011 * Initial revision 00012 * 00013 * 00014 */ 00015 00016 /* 00017 * site.h : Network parameter definitions. 00018 * 00019 *$ 95Aug31 LDD Added net & comp to SITE structure definition 00020 *$ 95Sep19 KL Added staname & chanid to SITE structure 00021 *$ 95Oct19 LDD Added prototypes for functions in site.c 00022 * 00023 */ 00024 #ifndef SITE_H 00025 #define SITE_H 00026 00027 /* Define the structure that will hold the site table 00028 ****************************************************/ 00029 int nSite; 00030 typedef struct { 00031 char name[6]; /* shorted from 8 to 6 for "universal" names */ 00032 char net[3]; /* added for "universal" naming convention */ 00033 char comp[4]; /* 950831:ldd */ 00034 char staname[50]; 00035 int chanid; 00036 double lat; 00037 double lon; 00038 double elev; 00039 } SITE; 00040 SITE *Site; 00041 00042 /* Prototypes for functions in site.c 00043 ************************************/ 00044 int site_com ( void ); /* process recognized commands */ 00045 void site_read ( char * ); /* read in a HYPOINV site file */ 00046 int site_load ( char * ); /* process a kom.c command file */ 00047 int site_index( char *, char *, char * ); /* return index in the Site table */ 00048 /* of the given site code */ 00049 #endif