RAVE
|
Implementation of the Precipitation accumulation - ACRR algorithm This object does NOT support RAVE_OBJECT_CLONE. More...
#include "rave_acrr.h"
#include "rave_attribute.h"
#include "rave_debug.h"
#include "rave_alloc.h"
#include "raveutil.h"
#include <string.h>
Classes | |
struct | _RaveAcrr_t |
Represents the acrr generator. More... | |
Macros | |
#define | ACRR_DISTANCE_TO_RADAR_RESOLUTION 1000.0 |
The resolution to use for scaling the distance from pixel to used radar. | |
Functions | |
int | RaveAcrr_sum (RaveAcrr_t *self, CartesianParam_t *param, double zr_a, double zr_b) |
Sums a parameter with the previously calculated values. | |
CartesianParam_t * | RaveAcrr_accumulate (RaveAcrr_t *self, double acpt, long N, double hours) |
Generates the result. | |
int | RaveAcrr_isInitialized (RaveAcrr_t *self) |
Returns if this instance has been initialized or not. | |
void | RaveAcrr_setNodata (RaveAcrr_t *self, double nodata) |
Sets the nodata to be used for the accumulation. | |
double | RaveAcrr_getNodata (RaveAcrr_t *self) |
Returns the nodata that will be used in the accumulation. | |
void | RaveAcrr_setUndetect (RaveAcrr_t *self, double undetect) |
Sets the undetect to be used for the accumulation. | |
double | RaveAcrr_getUndetect (RaveAcrr_t *self) |
Returns the undetect that will be used in the accumulation. | |
const char * | RaveAcrr_getQuantity (RaveAcrr_t *self) |
Returns the quantity for this generator instance. | |
int | RaveAcrr_setQualityFieldName (RaveAcrr_t *self, const char *fieldname) |
Sets the name of the quality field (how/task value) to be used as distance field when performing the Acrr algorithm. | |
const char * | RaveAcrr_getQualityFieldName (RaveAcrr_t *self) |
Returns the name of the quality field (how/task value) to be used as distance field when performing the Acrr algorithm. | |
Variables | |
RaveCoreObjectType | RaveAcrr_TYPE |
Type definition to use when creating a rave object. | |
Implementation of the Precipitation accumulation - ACRR algorithm This object does NOT support RAVE_OBJECT_CLONE.
#define ACRR_DISTANCE_TO_RADAR_RESOLUTION 1000.0 |
The resolution to use for scaling the distance from pixel to used radar.
By multiplying the values in the distance field by 1000, we get the value in unit meters.
CartesianParam_t * RaveAcrr_accumulate | ( | RaveAcrr_t * | self, |
double | acpt, | ||
long | N, | ||
double | hours ) |
Generates the result.
[in] | self | - self |
[in] | acpt | - the limit for accepting the accumulation (percent between 0 - 1) |
[in] | N | - the number of expected calls to sum (will be used when calculating acceptable limit) |
[in] | hours | - the number of hours this accumulation has been performed on. |
double RaveAcrr_getNodata | ( | RaveAcrr_t * | self | ) |
Returns the nodata that will be used in the accumulation.
[in] | self | - self |
const char * RaveAcrr_getQualityFieldName | ( | RaveAcrr_t * | self | ) |
Returns the name of the quality field (how/task value) to be used as distance field when performing the Acrr algorithm.
[in] | self | - self |
const char * RaveAcrr_getQuantity | ( | RaveAcrr_t * | self | ) |
Returns the quantity for this generator instance.
[in] | self | - self |
double RaveAcrr_getUndetect | ( | RaveAcrr_t * | self | ) |
Returns the undetect that will be used in the accumulation.
[in] | self | - self |
int RaveAcrr_isInitialized | ( | RaveAcrr_t * | self | ) |
Returns if this instance has been initialized or not.
[in] | self | - self |
void RaveAcrr_setNodata | ( | RaveAcrr_t * | self, |
double | nodata ) |
Sets the nodata to be used for the accumulation.
[in] | self | - self |
[in] | nodata | - the nodata value to use |
int RaveAcrr_setQualityFieldName | ( | RaveAcrr_t * | self, |
const char * | fieldname ) |
Sets the name of the quality field (how/task value) to be used as distance field when performing the Acrr algorithm.
(default is se.smhi.composite.distance.radar).
[in] | self | - self |
[in] | fieldname | - the name of the quality field (MAY NOT BE NULL) |
void RaveAcrr_setUndetect | ( | RaveAcrr_t * | self, |
double | undetect ) |
Sets the undetect to be used for the accumulation.
[in] | self | - self |
[in] | undetect | - the undetect value to use |
int RaveAcrr_sum | ( | RaveAcrr_t * | self, |
CartesianParam_t * | param, | ||
double | zr_a, | ||
double | zr_b ) |
Sums a parameter with the previously calculated values.
[in] | self | - self |
[in] | param | - the cartesian parameter |
RaveCoreObjectType RaveAcrr_TYPE |
Type definition to use when creating a rave object.