RAVE
raveutil.h
Go to the documentation of this file.
1
7#ifndef RAVE_UTIL_H
8#define RAVE_UTIL_H
9#endif
10
11#include "polar.h"
12
19double RAVEMAX(double a, double b);
20
27double RAVEMIN(double a, double b);
28
34double dBZ2Z(double dbz);
35
43double dBZ2R(double dbz, double A, double b);
44
50double Z2dBZ(double Z);
51
59double R2dBZ(double R, double A, double b);
60
68double raw2dbz(double raw, double gain, double offset);
69
78double dbz2raw(double dbz, double gain, double offset);
79
90double raw2R(double raw, double gain, double offset, double A, double b);
91
102double R2raw(double R, double gain, double offset, double A, double b);
103
109int mytrunc(double d);
110
118int myround_int(double d, double minlimit, double maxlimit);
Navigation routines for calculating distances and heights.
double R2raw(double R, double gain, double offset, double A, double b)
Converts R (mm/h) to raw using linear gain and offset, and Z-R coefficients A and b.
Definition raveutil.c:108
int mytrunc(double d)
Truncates a double to an integer.
Definition raveutil.c:116
double dbz2raw(double dbz, double gain, double offset)
Converts dBZ to raw and makes sure it fits within an 8-bit word using gain and offset.
Definition raveutil.c:78
double raw2R(double raw, double gain, double offset, double A, double b)
Converts raw to R (mm/h) using linear gain and offset, and Z-R coefficients A and b.
Definition raveutil.c:96
double raw2dbz(double raw, double gain, double offset)
Converts raw to dBZ using linear gain and offset.
Definition raveutil.c:70
double Z2dBZ(double Z)
Converts Z to dBZ.
Definition raveutil.c:51
int myround_int(double d, double minlimit, double maxlimit)
Rounds a double to an integer.
Definition raveutil.c:130
double R2dBZ(double R, double A, double b)
Converts mm/h to dBZ, given an input dBZ and Z-R constants A and b.
Definition raveutil.c:59
double dBZ2R(double dbz, double A, double b)
Converts dBZ to mm/h, given an input dBZ and Z-R constants A and b.
Definition raveutil.c:38
double dBZ2Z(double dbz)
Converts dBZ to Z.
Definition raveutil.c:30
double RAVEMIN(double a, double b)
Returns the minimum value of a and b.
Definition raveutil.c:19
double RAVEMAX(double a, double b)
Returns the maximum value of a and b.
Definition raveutil.c:11