RAVE
|
Defines the functions available when creating composites from cartesian products. More...
#include "cartesiancomposite.h"
#include "cartesianparam.h"
#include "cartesian.h"
#include "projection_pipeline.h"
#include "raveobject_list.h"
#include "rave_debug.h"
#include "rave_alloc.h"
#include "rave_datetime.h"
#include <string.h>
#include "raveobject_hashtable.h"
Classes | |
struct | _CartesianComposite_t |
Represents the cartesian composite generator. More... | |
Macros | |
#define | DISTANCE_TO_RADAR_HOW_TASK "se.smhi.composite.distance.radar" |
The name of the task for specifying distance to radar. | |
Functions | |
int | CartesianComposite_add (CartesianComposite_t *self, Cartesian_t *o) |
Adds a cartesian product to the cartesian composite generator. | |
int | CartesianComposite_getNumberOfObjects (CartesianComposite_t *self) |
Returns the number of objects this composite will process. | |
Cartesian_t * | CartesianComposite_get (CartesianComposite_t *self, int index) |
Return the object at position index. | |
int | CartesianComposite_setMethod (CartesianComposite_t *self, CartesianCompositeSelectionMethod_t method) |
Sets the selection method to use. | |
CartesianCompositeSelectionMethod_t | CartesianComposite_getMethod (CartesianComposite_t *self) |
Returns the currently selection method. | |
int | CartesianComposite_setDistanceField (CartesianComposite_t *self, const char *fieldname) |
Sets the distance field to use when executing the DISTANCE selection method. | |
const char * | CartesianComposite_getDistanceField (CartesianComposite_t *self) |
Returns the quality field name (how/task) for the distance field to use when executing the DISTANCE selection method. | |
int | CartesianComposite_setTime (CartesianComposite_t *self, const char *value) |
Sets the nominal time. | |
const char * | CartesianComposite_getTime (CartesianComposite_t *self) |
Returns the nominal time. | |
int | CartesianComposite_setDate (CartesianComposite_t *self, const char *value) |
Sets the nominal date. | |
const char * | CartesianComposite_getDate (CartesianComposite_t *self) |
Returns the nominal date. | |
int | CartesianComposite_setQuantity (CartesianComposite_t *self, const char *quantity) |
Sets the quantity. | |
const char * | CartesianComposite_getQuantity (CartesianComposite_t *self) |
Returns the quantity (default DBZH) | |
void | CartesianComposite_setGain (CartesianComposite_t *self, double gain) |
Sets the gain. | |
double | CartesianComposite_getGain (CartesianComposite_t *self) |
Returns the gain. | |
void | CartesianComposite_setOffset (CartesianComposite_t *self, double offset) |
Sets the offset. | |
double | CartesianComposite_getOffset (CartesianComposite_t *self) |
Returns the offset. | |
void | CartesianComposite_setNodata (CartesianComposite_t *self, double nodata) |
Sets the nodata. | |
double | CartesianComposite_getNodata (CartesianComposite_t *self) |
Returns the nodata. | |
void | CartesianComposite_setUndetect (CartesianComposite_t *self, double undetect) |
Sets the undetect. | |
double | CartesianComposite_getUndetect (CartesianComposite_t *self) |
Returns the undetect. | |
Cartesian_t * | CartesianComposite_nearest (CartesianComposite_t *self, Area_t *area) |
Generates a composite according to the nearest radar principle. | |
Variables | |
RaveCoreObjectType | CartesianComposite_TYPE |
Type definition to use when creating a rave object. | |
Defines the functions available when creating composites from cartesian products.
#define DISTANCE_TO_RADAR_HOW_TASK "se.smhi.composite.distance.radar" |
The name of the task for specifying distance to radar.
int CartesianComposite_add | ( | CartesianComposite_t * | self, |
Cartesian_t * | object ) |
Adds a cartesian product to the cartesian composite generator.
[in] | self | - self |
[in] | object | - the item to be added to the composite |
Cartesian_t * CartesianComposite_get | ( | CartesianComposite_t * | self, |
int | index ) |
Return the object at position index.
[in] | self | - self |
[in] | index | - the index, should be >= 0 and < getNumberOfObjects |
const char * CartesianComposite_getDate | ( | CartesianComposite_t * | self | ) |
Returns the nominal date.
[in] | self | - self |
const char * CartesianComposite_getDistanceField | ( | CartesianComposite_t * | self | ) |
Returns the quality field name (how/task) for the distance field to use when executing the DISTANCE selection method.
[in] | self | - self |
double CartesianComposite_getGain | ( | CartesianComposite_t * | self | ) |
Returns the gain.
[in] | self | - self |
CartesianCompositeSelectionMethod_t CartesianComposite_getMethod | ( | CartesianComposite_t * | self | ) |
Returns the currently selection method.
Default is CartesianCompositeSelectionMethod_FIRST.
[in] | self | - self |
double CartesianComposite_getNodata | ( | CartesianComposite_t * | self | ) |
Returns the nodata.
[in] | self | - self |
int CartesianComposite_getNumberOfObjects | ( | CartesianComposite_t * | self | ) |
Returns the number of objects this composite will process.
[in] | self | - self |
double CartesianComposite_getOffset | ( | CartesianComposite_t * | self | ) |
Returns the offset.
[in] | self | - self |
const char * CartesianComposite_getQuantity | ( | CartesianComposite_t * | self | ) |
Returns the quantity (default DBZH)
[in] | self | - self |
const char * CartesianComposite_getTime | ( | CartesianComposite_t * | self | ) |
Returns the nominal time.
[in] | self | - self |
double CartesianComposite_getUndetect | ( | CartesianComposite_t * | self | ) |
Returns the undetect.
[in] | self | - self |
Cartesian_t * CartesianComposite_nearest | ( | CartesianComposite_t * | self, |
Area_t * | area ) |
Generates a composite according to the nearest radar principle.
[in] | self | - self |
[in] | area | - the area that should be used for defining the composite. |
int CartesianComposite_setDate | ( | CartesianComposite_t * | self, |
const char * | value ) |
Sets the nominal date.
[in] | self | - self |
[in] | value | - the date in the format YYYYMMDD |
int CartesianComposite_setDistanceField | ( | CartesianComposite_t * | self, |
const char * | fieldname ) |
Sets the distance field to use when executing the DISTANCE selection method.
(MAY NOT BE NULL)
[in] | self | - self |
[in] | fieldname | - the how/task name for the quality field with the distance information |
void CartesianComposite_setGain | ( | CartesianComposite_t * | self, |
double | gain ) |
Sets the gain.
[in] | self | - self |
[in] | gain | - the gain (MAY NOT BE 0.0) |
int CartesianComposite_setMethod | ( | CartesianComposite_t * | self, |
CartesianCompositeSelectionMethod_t | method ) |
Sets the selection method to use.
[in] | self | - self |
[in] | method | - the selection method |
void CartesianComposite_setNodata | ( | CartesianComposite_t * | self, |
double | nodata ) |
Sets the nodata.
[in] | self | - self |
[in] | nodata | - the nodata |
void CartesianComposite_setOffset | ( | CartesianComposite_t * | self, |
double | offset ) |
Sets the offset.
[in] | self | - self |
[in] | offset | - the offset |
int CartesianComposite_setQuantity | ( | CartesianComposite_t * | self, |
const char * | quantity ) |
Sets the quantity.
[in] | self | - self |
[in] | quantity | - the quantity, e.g. DBZH |
int CartesianComposite_setTime | ( | CartesianComposite_t * | self, |
const char * | value ) |
Sets the nominal time.
[in] | self | - self |
[in] | value | - the time in the format HHmmss |
void CartesianComposite_setUndetect | ( | CartesianComposite_t * | self, |
double | undetect ) |
Sets the undetect.
[in] | self | - self |
[in] | undetect | - the undetect |
RaveCoreObjectType CartesianComposite_TYPE |
Type definition to use when creating a rave object.