|
RAVE
|
Useful functions when working with the composite engine. More...
#include "compositeenginefunctions.h"#include "composite_utils.h"#include "compositearguments.h"#include "polarvolume.h"#include "rave_attribute.h"#include "rave_object.h"#include "rave_properties.h"#include "rave_value.h"#include "raveobject_hashtable.h"#include "raveobject_list.h"#include "rave_types.h"#include "rave_debug.h"#include "rave_alloc.h"#include "rave_datetime.h"#include "projection_pipeline.h"#include <string.h>#include "rave_field.h"#include <float.h>#include <stdio.h>#include <math.h>#include "raveutil.h"Functions | |
| int | CompositeEngineFunctions_prepareRATE (CompositeEngine_t *engine, CompositeArguments_t *arguments, CompositeEngineObjectBinding_t *binding, int nbindings) |
| Prepares the binding with the RATE coefficients so that they can be used when generating the product. | |
| int | CompositeEngineFunctions_updateRATECoefficients (CompositeArguments_t *arguments, Cartesian_t *cartesian, CompositeEngineObjectBinding_t *bindings, int nbindings) |
| Updates the how/product_parameters - group for the cartesian parameter "RATE" if found. | |
| double | CompositeEngineFunction_convertDbzToRate (CompositeEngineObjectBinding_t *binding, RaveValueType valuetype, double value, double default_zr_a, double default_zr_b) |
| Each binding has got a member called value which is of type RaveValue_t. | |
| int | CompositeEngineFunctions_getRATEValueAtPosition (CompositeEngine_t *engine, void *extradata, CompositeArguments_t *arguments, CompositeEngineObjectBinding_t *binding, const char *quantity, PolarNavigationInfo *navinfo, const char *qiFieldName, RaveValueType *otype, double *ovalue, double *qivalue) |
| Gets the DBZH (quantity) value at the position and converts it to rain rate if possible which is returned in ovalue. | |
Useful functions when working with the composite engine.
| double CompositeEngineFunction_convertDbzToRate | ( | CompositeEngineObjectBinding_t * | binding, |
| RaveValueType | valuetype, | ||
| double | value, | ||
| double | default_zr_a, | ||
| double | default_zr_b ) |
Each binding has got a member called value which is of type RaveValue_t.
This contains a zr-relationship for RATE products.
| [in] | binding | - the binding where the value contains the individual ZR coefficients |
| [in] | valuetype | - the type of value (basically, if it is RaveValueType_DATA, the returned value will be the RR ) |
| [in] | value | - the dbz |
| [in] | default_zr_a | - the ZR A coefficient (will only be used if there is no binding value ZR coefficients) |
| [in] | default_zr_b | - the ZR b coefficient (will only be used if there is no binding value ZR coefficients) |
| int CompositeEngineFunctions_getRATEValueAtPosition | ( | CompositeEngine_t * | engine, |
| void * | extradata, | ||
| CompositeArguments_t * | arguments, | ||
| CompositeEngineObjectBinding_t * | binding, | ||
| const char * | quantity, | ||
| PolarNavigationInfo * | navinfo, | ||
| const char * | qiFieldName, | ||
| RaveValueType * | otype, | ||
| double * | ovalue, | ||
| double * | qivalue ) |
Gets the DBZH (quantity) value at the position and converts it to rain rate if possible which is returned in ovalue.
| [in] | engine | - the engine |
| [in] | extradata | - NOT USED |
| [in] | arguments | - compositing arguments |
| [in] | binding | - the polar object binding |
| [in] | quantity | - NOT USED, it will always assume DBZH |
| [in] | navinfo | - the navigation for data from where to pick the value const char* qiFieldName, RaveValueType* otype, double* ovalue, double* qivalue); |
| [in] | qiFieldName | - The quality field value if a qi value also should be returned |
| [out] | otype | - the type of data at specified position |
| [out] | ovalue | - the rate |
| [out] | qivalue | - the qi value if requested |
| int CompositeEngineFunctions_prepareRATE | ( | CompositeEngine_t * | engine, |
| CompositeArguments_t * | arguments, | ||
| CompositeEngineObjectBinding_t * | bindings, | ||
| int | nbindings ) |
Prepares the binding with the RATE coefficients so that they can be used when generating the product.
| [in] | engine | - the engine associated with these bindings |
| [in] | arguments | - the compositing arguments |
| [in] | bindings | - the bindings |
| [in] | nbindings | - number of bindings |
| int CompositeEngineFunctions_updateRATECoefficients | ( | CompositeArguments_t * | arguments, |
| Cartesian_t * | cartesian, | ||
| CompositeEngineObjectBinding_t * | bindings, | ||
| int | nbindings ) |
Updates the how/product_parameters - group for the cartesian parameter "RATE" if found.
| [in] | arguments | - the compositing arguments |
| [in] | cartesian | - the cartesian product |
| [in] | bindings | - the bindings |
| [in] | nbindings | - number of bindings |