RAVE
radardefinition.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------------------------------------------------------------------------*/
26#ifndef RADARDEFINITION_H
27#define RADARDEFINITION_H
28#include "rave_proj.h"
29#include "projection.h"
30#include "rave_object.h"
31
36
41
48int RadarDefinition_setID(RadarDefinition_t* radar, const char* id);
49
55
62int RadarDefinition_setDescription(RadarDefinition_t* radar, const char* descr);
63
69
75
81
87
93
98void RadarDefinition_setHeight(RadarDefinition_t* radar, double h);
99
105
113int RadarDefinition_setElangles(RadarDefinition_t* radar, unsigned int nangles, double* angles);
114
122int RadarDefinition_getElangles(RadarDefinition_t* radar, unsigned int* nangles, double** angles);
123
124
131
138
144
150
156
162
168
174
179void RadarDefinition_setBeamwidth(RadarDefinition_t* radar, double bw);
180
186
191void RadarDefinition_setBeamwH(RadarDefinition_t* radar, double bw);
192
198
203void RadarDefinition_setBeamwV(RadarDefinition_t* radar, double bw);
204
210
216
222
223#endif /* RADARDEFINITION_H */
Wrapper around PROJ.4.
double RadarDefinition_getLongitude(RadarDefinition_t *radar)
Definition radardefinition.c:181
double RadarDefinition_getScale(RadarDefinition_t *radar)
Definition radardefinition.c:293
long RadarDefinition_getNbins(RadarDefinition_t *radar)
Definition radardefinition.c:281
const char * RadarDefinition_getID(RadarDefinition_t *radar)
Returns the ID for this definition.
Definition radardefinition.c:149
double RadarDefinition_getBeamwidth(RadarDefinition_t *radar)
Definition radardefinition.c:305
int RadarDefinition_setDescription(RadarDefinition_t *radar, const char *descr)
Sets the description for this definition.
Definition radardefinition.c:155
void RadarDefinition_setBeamwH(RadarDefinition_t *radar, double bw)
Definition radardefinition.c:311
long RadarDefinition_getNrays(RadarDefinition_t *radar)
Definition radardefinition.c:269
int RadarDefinition_getElangles(RadarDefinition_t *radar, unsigned int *nangles, double **angles)
Returns the elevation angles.
Definition radardefinition.c:240
double RadarDefinition_getWavelength(RadarDefinition_t *radar)
Definition radardefinition.c:342
void RadarDefinition_setScale(RadarDefinition_t *radar, double scale)
Definition radardefinition.c:287
int RadarDefinition_setElangles(RadarDefinition_t *radar, unsigned int nangles, double *angles)
Sets the elevation angles.
Definition radardefinition.c:211
int RadarDefinition_setID(RadarDefinition_t *radar, const char *id)
Sets the ID for this definition.
Definition radardefinition.c:135
void RadarDefinition_setBeamwidth(RadarDefinition_t *radar, double bw)
Definition radardefinition.c:299
void RadarDefinition_setLongitude(RadarDefinition_t *radar, double lon)
Definition radardefinition.c:175
void RadarDefinition_setLatitude(RadarDefinition_t *radar, double lat)
Definition radardefinition.c:187
double RadarDefinition_getBeamwH(RadarDefinition_t *radar)
Definition radardefinition.c:318
void RadarDefinition_setWavelength(RadarDefinition_t *radar, double l)
Definition radardefinition.c:336
void RadarDefinition_setBeamwV(RadarDefinition_t *radar, double bw)
Definition radardefinition.c:324
double RadarDefinition_getLatitude(RadarDefinition_t *radar)
Definition radardefinition.c:193
void RadarDefinition_setNrays(RadarDefinition_t *radar, long nrays)
Definition radardefinition.c:263
RaveCoreObjectType RadarDefinition_TYPE
Type definition to use when creating a rave object.
Definition radardefinition.c:363
double RadarDefinition_getBeamwV(RadarDefinition_t *radar)
Definition radardefinition.c:330
double RadarDefinition_getHeight(RadarDefinition_t *radar)
Definition radardefinition.c:205
void RadarDefinition_setProjection(RadarDefinition_t *radar, Projection_t *projection)
Sets the projection that defines this radar.
Definition radardefinition.c:348
void RadarDefinition_setNbins(RadarDefinition_t *radar, long nbins)
Definition radardefinition.c:275
void RadarDefinition_setHeight(RadarDefinition_t *radar, double h)
Definition radardefinition.c:199
Projection_t * RadarDefinition_getProjection(RadarDefinition_t *radar)
Returns the projection that defines this radar.
Definition radardefinition.c:355
const char * RadarDefinition_getDescription(RadarDefinition_t *radar)
Returns the description for this definition.
Definition radardefinition.c:169
Generic implementation of an object that is used within rave.
Handles compatibility issues related to PROJ versions and the definitions.
Represents one projection.
Definition projection.c:55
Represents the area.
Definition radardefinition.c:33
Projection_t * projection
the projection that is used for this radar, usually just a plain lonlat projection
Definition radardefinition.c:49
double lat
the latitude (in radians)
Definition radardefinition.c:39
long nrays
number of rays
Definition radardefinition.c:43
double scale
the size of a bin
Definition radardefinition.c:45
double lon
the longitude (in radians)
Definition radardefinition.c:38
long nbins
number of bins
Definition radardefinition.c:44
The rave object type definition.
Definition rave_object.h:52