Former-commit-id:133dc97f67
[formerlya02aeb236c
] [formerly9f19e3f712
] [formerly06a8b51d6d
[formerly9f19e3f712
[formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]]] Former-commit-id:06a8b51d6d
Former-commit-id:377dcd10b9
[formerly3360eb6c5f
] Former-commit-id:8e80217e59
31 lines
604 B
C
31 lines
604 B
C
#ifndef PRECIP_TOTAL_H
|
|
#define PRECIP_TOTAL_H
|
|
|
|
#include <time.h>
|
|
#include "DbmsDefs.h"
|
|
|
|
|
|
/* for a given duration, a value is missing if no data are found;
|
|
it is rejected if less than some threshold percent of data
|
|
is found; it is ignored if the existing data covered more of
|
|
the duration that the duration covered by the data just analyzed. */
|
|
|
|
#define MISSING_PRECIP -9999.
|
|
|
|
#define LARGE_DIFF 10.0
|
|
|
|
#define OK_CHAR ' '
|
|
#define MISSING_CHAR 'm'
|
|
#define REJECTED_CHAR 'r'
|
|
|
|
|
|
/* error conditions */
|
|
|
|
typedef struct
|
|
{
|
|
int negval;
|
|
int negdiff;
|
|
int largediff;
|
|
} data_err_struct;
|
|
|
|
#endif
|