RAVE
ravepia.h
Go to the documentation of this file.
1/* --------------------------------------------------------------------
2Copyright (C) 2025 Swedish Meteorological and Hydrological Institute, SMHI,
3
4This file is part of RAVE.
5
6RAVE is free software: you can redistribute it and/or modify
7it under the terms of the GNU Lesser General Public License as published by
8the Free Software Foundation, either version 3 of the License, or
9(at your option) any later version.
10
11RAVE is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU Lesser General Public License for more details.
15
16You should have received a copy of the GNU Lesser General Public License
17along with RAVE. If not, see <http://www.gnu.org/licenses/>.
18------------------------------------------------------------------------*/
26#ifndef RAVE_PIA_H
27#define RAVE_PIA_H
28#include "rave_object.h"
29#include "rave_field.h"
30#include "polarscan.h"
31
35typedef struct _RavePIA_t RavePIA_t;
36
41
42const char* RavePIA_getHowTaskName();
43
49void RavePIA_setZkPowerCoefficient(RavePIA_t* self, double c);
50
56
62void RavePIA_setZkPowerExponent(RavePIA_t* self, double d);
63
69
75void RavePIA_setPiaMax(RavePIA_t* self, double maxv);
76
82double RavePIA_getPiaMax(RavePIA_t* self);
83
84
90void RavePIA_setRangeResolution(RavePIA_t* self, double rr);
91
98
99
108RaveField_t* RavePIA_calculatePIA(RavePIA_t* self, PolarScan_t* scan, const char* quantity, double* outDr);
109
119PolarScanParam_t* RavePIA_createPIAParameter(RavePIA_t* self, PolarScan_t* scan, const char* quantity, RaveField_t** outPIA, double* outDr);
120
131int RavePIA_process(RavePIA_t* self, PolarScan_t* scan, const char* quantity, int addparam, int reprocessquality, int apply);
132
133#endif /* RAVE_GRA_H */
Defines the functions available when working with polar scans.
struct _PolarScan_t PolarScan_t
Defines a Polar Scan.
Definition polarscan.h:41
struct _PolarScanParam_t PolarScanParam_t
Defines a Polar Scan Parameter.
Definition polarscanparam.h:41
Generic field that only provides a 2-dim data field and a number of dynamic attributes.
struct _RaveField_t RaveField_t
Defines a Rave field.
Definition rave_field.h:38
Generic implementation of an object that is used within rave.
struct _raveobjecttype RaveCoreObjectType
The rave object type definition.
RaveCoreObjectType RavePIA_TYPE
Type definition to use when creating a rave object.
Definition ravepia.c:372
PolarScanParam_t * RavePIA_createPIAParameter(RavePIA_t *self, PolarScan_t *scan, const char *quantity, RaveField_t **outPIA, double *outDr)
Creates the PIA parameter.
Definition ravepia.c:225
int RavePIA_process(RavePIA_t *self, PolarScan_t *scan, const char *quantity, int addparam, int reprocessquality, int apply)
Performs the processing and adds quality flag / PIA parameter and adjusts DBZH field.
Definition ravepia.c:289
void RavePIA_setPiaMax(RavePIA_t *self, double maxv)
Sets the PIA max value.
Definition ravepia.c:124
double RavePIA_getZkPowerCoefficient(RavePIA_t *self)
Returns the coefficient of Z-k power law.
Definition ravepia.c:106
void RavePIA_setZkPowerExponent(RavePIA_t *self, double d)
Sets the exponent of Z-k power law.
Definition ravepia.c:112
void RavePIA_setRangeResolution(RavePIA_t *self, double rr)
Sets the range resolution in km.
Definition ravepia.c:136
void RavePIA_setZkPowerCoefficient(RavePIA_t *self, double c)
Sets the coefficient of Z-k power law.
Definition ravepia.c:100
double RavePIA_getPiaMax(RavePIA_t *self)
Returns the PIA max value.
Definition ravepia.c:130
struct _RavePIA_t RavePIA_t
Defines PIA.
Definition ravepia.h:35
double RavePIA_getRangeResolution(RavePIA_t *self)
Returns the range resolution in km.
Definition ravepia.c:142
RaveField_t * RavePIA_calculatePIA(RavePIA_t *self, PolarScan_t *scan, const char *quantity, double *outDr)
Calculates PIA for specified quantity in scan.
Definition ravepia.c:148
double RavePIA_getZkPowerExponent(RavePIA_t *self)
Returns the coefficient of Z-k power law.
Definition ravepia.c:118
Represents the gra applier.
Definition ravepia.c:47
double rr
the range resolution in km
Definition ravepia.c:52