RAVE
transform.h
Go to the documentation of this file.
1/* --------------------------------------------------------------------
2Copyright (C) 2009 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------------------------------------------------------------------------*/
27#ifndef TRANSFORM_H
28#define TRANSFORM_H
29#include "rave_proj.h"
30#include "polarvolume.h"
31#include "cartesian.h"
32#include "radardefinition.h"
33#include "area.h"
34
39
44
52
59
67int Transform_ppi(Transform_t* transform, PolarScan_t* scan, Cartesian_t* cartesian);
68
77int Transform_cappi(Transform_t* transform, PolarVolume_t* pvol, Cartesian_t* cartesian, double height);
78
87int Transform_pcappi(Transform_t* transform, PolarVolume_t* pvol, Cartesian_t* cartesian, double height);
88
98PolarScan_t* Transform_ctoscan(Transform_t* transform, Cartesian_t* cartesian, RadarDefinition_t* def, double angle, const char* quantity);
99
108PolarVolume_t* Transform_ctop(Transform_t* transform, Cartesian_t* cartesian, RadarDefinition_t* def, const char* quantity);
109
117
125
131CartesianParam_t* Transform_accumulate(Transform_t* self, CartesianParam_t* param, double zr_a, double zr_b);
132
144
145#endif
Defines an area, the extent, projection, etc.
Defines the functions available when working with cartesian products.
Defines the functions available when working with polar volumes.
Defines a radar definition This object supports RAVE_OBJECT_CLONE.
Handles compatibility issues related to PROJ versions and the definitions.
RaveTransformationMethod
Transformation methods.
Definition rave_types.h:148
Represents the area.
Definition area.c:34
Represents the cartesian field product.
Definition cartesianparam.c:40
Represents the cartesian product.
Definition cartesian.c:41
Represents one scan in a volume.
Definition polarscan.c:47
Represents a volume.
Definition polarvolume.c:51
Represents the area.
Definition radardefinition.c:33
Represents a list.
Definition raveobject_list.c:35
Represents one transformator.
Definition transform.c:41
RAVE_OBJECT_HEAD RaveTransformationMethod method
Always on top.
Definition transform.c:43
The rave object type definition.
Definition rave_object.h:52
int Transform_pcappi(Transform_t *transform, PolarVolume_t *pvol, Cartesian_t *cartesian, double height)
Creates a pseudo-cappi from a polar volume.
Definition transform.c:286
RaveCoreObjectType Transform_TYPE
Type definition to use when creating a rave object.
Definition transform.c:985
RaveTransformationMethod Transform_getMethod(Transform_t *transform)
Returns the transformation method.
Definition transform.c:212
CartesianParam_t * Transform_fillGapOnParameter(Transform_t *transform, CartesianParam_t *param)
Fills the gaps in a cartesian parameter.
Definition transform.c:510
PolarVolume_t * Transform_ctop(Transform_t *transform, Cartesian_t *cartesian, RadarDefinition_t *def, const char *quantity)
Mirrors a cartesian product into a polar volume.
Definition transform.c:400
PolarScan_t * Transform_ctoscan(Transform_t *transform, Cartesian_t *cartesian, RadarDefinition_t *def, double angle, const char *quantity)
Mirrors a cartesian product into a polar scan.
Definition transform.c:291
Cartesian_t * Transform_fillGap(Transform_t *transform, Cartesian_t *cartesian)
Fills the gaps in a cartesian product.
Definition transform.c:456
CartesianParam_t * Transform_accumulate(Transform_t *self, CartesianParam_t *param, double zr_a, double zr_b)
Accumulated precipitation from reflectivity composites.
Definition transform.c:561
Cartesian_t * Transform_combine_tiles(Transform_t *self, Area_t *area, RaveObjectList_t *tiles)
Combines a number of tiles into the area defined by area.
Definition transform.c:896
int Transform_cappi(Transform_t *transform, PolarVolume_t *pvol, Cartesian_t *cartesian, double height)
Creates a cappi from a polar volume.
Definition transform.c:281
int Transform_setMethod(Transform_t *transform, RaveTransformationMethod method)
Sets the transformation method to be used, like NEAREST, BILINEAR, ...
Definition transform.c:201
int Transform_ppi(Transform_t *transform, PolarScan_t *scan, Cartesian_t *cartesian)
Creates a ppi from a polar scan.
Definition transform.c:218