|
HAZE
haze is a drop-in replacement to process water vapor to be used with FORCE
|
Functions | |
| double | kgsqmTocow (double x) |
| Compute water column height. | |
| double | calculateWeightedAverage (const double *values, const double *weights, size_t count) |
| Compute the weighted average. | |
| int | intcmp (const void *a, const void *b) |
| Callback function for qsort to compare integers. | |
| double calculateWeightedAverage | ( | const double * | values, |
| const double * | weights, | ||
| size_t | count ) |
Compute the weighted average.
Compute the weighted arithmetic mean of count amount of values. Every value must be associated with a weight.
\[ \bar{x} = \frac{\sum_{i = 1}^{\textrm{count}}x_i \times w_i}{\sum_{i = 1}^{\textrm{count}}w_i} \]
| values | Values to average. |
| weights | Weights associated with values. |
| count | Size of arrays. |
| int intcmp | ( | const void * | a, |
| const void * | b ) |
Callback function for qsort to compare integers.
| a | Void-casted reference to first value of comparison. |
| b | Void-casted reference to second value of comparison. |
| double kgsqmTocow | ( | double | x | ) |
Compute water column height.
ECMWF distributes data in unit of kilogram per square meter. To allow easy integration with FORCE, the values are converted to water column height.
| x | Water vapor concentration in kilogram per square meter. |