Mapper
hydro_data.h
Go to the documentation of this file.
1 #include <stdio.h>
2 #include <string.h>
3 #include <stdlib.h>
4 #include <math.h>
5 #include <time.h>
6 #include <sys/stat.h>
7 #include <sys/types.h>
8 #include <dirent.h>
9 #include <errno.h>
10 #include <unistd.h>
11 #include <ctype.h>
12 #include <signal.h>
13 
14 #include "rat.h"
15 
16 struct rainfall
17 {
18  float rn;
19  int rel;
20  int obs;
21  int tskips;
22  int tdif;
23  int cycle;
24  int maxtdif;
25  int firstdif;
26  float maxgap;
27  int ier;
28 };
29 
30 struct stn_values
31 {
32  time_t clock;
33  int zdate;
34  int ztime;
35  float value;
36  char qual;
37 };
38 
40 {
41  char id[6];
42  char name[31];
43  float lat;
44  float lon;
45  float elev;
46 };
47 
48 struct sens_info
49 {
50  char shef[8];
51 };
52 
53 int debug;
54 
55 float get_rain(struct stn_values *,char *,int,time_t,time_t,struct rainfall *);
56 int domsat_rain(struct stn_values *,int, time_t ,time_t,struct rainfall *);
57 int alert_rain(struct stn_values *,int, time_t ,time_t,struct rainfall *);
58 int snotel_rain(struct stn_values *,int, time_t ,time_t,struct rainfall *);
59 int hourly_rain(struct stn_values *,int, time_t ,time_t,struct rainfall *);
60 float weigh(struct stn_values *,int,int,double,double,int,int *,double *);
61 int get_stn_info(char *, struct stn_information *);
62 int get_stn_values(char *, char *, time_t, time_t, struct stn_values *);
63 
int domsat_rain(struct stn_values *, int, time_t, time_t, struct rainfall *)
Definition: domsat_rain.c:26
int snotel_rain(struct stn_values *, int, time_t, time_t, struct rainfall *)
Definition: snotel_rain.c:26
float weigh(struct stn_values *, int, int, double, double, int, int *, double *)
Definition: weigh.c:5
int alert_rain(struct stn_values *, int, time_t, time_t, struct rainfall *)
Definition: alert_rain.c:16
int get_stn_values(char *, char *, time_t, time_t, struct stn_values *)
Definition: get_stn_values.c:6
int hourly_rain(struct stn_values *, int, time_t, time_t, struct rainfall *)
Definition: hourly_rain.c:15
int get_stn_info(char *, struct stn_information *)
int debug
Definition: hydro_data.h:53
float get_rain(struct stn_values *, char *, int, time_t, time_t, struct rainfall *)
Definition: get_rain.c:3
int maxtdif
Definition: hydro_data.h:24
float rn
Definition: hydro_data.h:18
float maxgap
Definition: hydro_data.h:26
int firstdif
Definition: hydro_data.h:25
int obs
Definition: hydro_data.h:20
int tskips
Definition: hydro_data.h:21
int tdif
Definition: hydro_data.h:22
int cycle
Definition: hydro_data.h:23
int ier
Definition: hydro_data.h:27
int rel
Definition: hydro_data.h:19
char shef[8]
Definition: hydro_data.h:50
char name[31]
Definition: hydro_data.h:42
char qual
Definition: hydro_data.h:36
time_t clock
Definition: hydro_data.h:32
float value
Definition: hydro_data.h:35