RAVE
dealias.h File Reference

Provides functionality for dealiasing radial wind data. More...

#include <math.h>
#include <bits/nan.h>
#include <string.h>
#include "polarvolume.h"
#include "polarscan.h"
#include "polarscanparam.h"
#include "rave_attribute.h"
#include "rave_object.h"
#include "rave_alloc.h"
#include "rave_types.h"
#include "raveutil.h"
#include "rave_debug.h"

Go to the source code of this file.

Macros

#define DEG2RAD   .017453292519943296 /* Degrees to radians. From PROJ.4 */
 
#define RAD2DEG   57.295779513082321 /* Radians to degrees. From PROJ.4 */
 
#define VMAX   48 /* Maximum velocity */
 
#define VAF   4 /* */
 
#define NF   40 /* */
 
#define MVA   8 /* */
 
#define EPSILON   1E-10 /* */
 
#define EMAX   2.0 /* Maximum elevation angle [deg] */
 
#define FRAY   0.25 /* Minimum fraction of rays */
 

Functions

double max_vector (double *a, int n)
 Returns the maximum of a vector.
 
double min_vector (double *a, int n)
 Returns the minimum of a vector.
 
int dealiased_by_quantity (PolarScan_t *scan, const char *quantity)
 Determines whether a scan is dealiased or not.
 
int dealiased (PolarScan_t *scan)
 Determines whether a scan is dealiased or not and performs dealiasing of the VRAD parameter.
 
PolarScanParam_tcreate_dealiased_parameter (PolarScan_t *scan, const char *quantity, const char *newquantity)
 Creates a dealiased parameter from the scan / quantity.
 
int dealias_pvol_by_quantity (PolarVolume_t *inobj, const char *quantity, double emax)
 Function for dealiasing polar volume data for the specified parameter.
 
int dealias_pvol (PolarVolume_t *inobj)
 Function for dealiasing polar volume data for the VRAD parameter.
 
int dealias_scan_by_quantity (PolarScan_t *inobj, const char *quantity, double emax)
 Function for dealiasing polar scan data for the specified parameter.
 
int dealias_scan (PolarScan_t *inobj)
 Function for dealiasing polar scan data for the VRAD parameter.
 

Detailed Description

Provides functionality for dealiasing radial wind data.

Author
Gunther Haase, SMHI
Date
2013-02-06

Function Documentation

◆ create_dealiased_parameter()

PolarScanParam_t * create_dealiased_parameter ( PolarScan_t * scan,
const char * quantity,
const char * newquantity )

Creates a dealiased parameter from the scan / quantity.

The created dealiased parameter will get quantity newquantity

Parameters
[in]scan- the scan to be dealiased
[in]quantity- the quantity to dealias
[in]newquantity- the quantity of the dealiased parameter
Returns
the dealiased scan parameter

◆ dealias_pvol()

int dealias_pvol ( PolarVolume_t * inobj)

Function for dealiasing polar volume data for the VRAD parameter.

Same as invoking dealias_pvol_by_quantity(vol, "VRAD").

Parameters
[in]source- input volume
Returns
int 1 upon success, otherwise 0

◆ dealias_pvol_by_quantity()

int dealias_pvol_by_quantity ( PolarVolume_t * inobj,
const char * quantity,
double emax )

Function for dealiasing polar volume data for the specified parameter.

Parameters
[in]source- input volume
[in]quantity- the quantity
[in]emax- the maximum elevation angle
Returns
int 1 upon success, otherwise 0

◆ dealias_scan()

int dealias_scan ( PolarScan_t * inobj)

Function for dealiasing polar scan data for the VRAD parameter.

Same as calling dealias_scan_by_quantity(scan, "VRAD").

Parameters
[in]source- input scan
Returns
int 1 upon success, otherwise 0

◆ dealias_scan_by_quantity()

int dealias_scan_by_quantity ( PolarScan_t * inobj,
const char * quantity,
double emax )

Function for dealiasing polar scan data for the specified parameter.

Parameters
[in]source- input scan
[in]quantity- the quantity
[in]emax- the maximum elevation angle
Returns
int 1 upon success, otherwise 0

◆ dealiased()

int dealiased ( PolarScan_t * scan)

Determines whether a scan is dealiased or not and performs dealiasing of the VRAD parameter.

Same as calling dealiased_by_quantity(scan, "VRAD").

Parameters
[in]scan- input scan
Returns
int 1 if scan is dealiased, otherwise 0

◆ dealiased_by_quantity()

int dealiased_by_quantity ( PolarScan_t * scan,
const char * quantity )

Determines whether a scan is dealiased or not.

Parameters
[in]scan- input scan
[in]quantity- the quantity to be dealiased
Returns
int 1 if scan is dealiased, otherwise 0

◆ max_vector()

double max_vector ( double * a,
int n )

Returns the maximum of a vector.

Parameters
[in]a- input vector
[in]n- vector length
Returns
maximum of a vector

◆ min_vector()

double min_vector ( double * a,
int n )

Returns the minimum of a vector.

Parameters
[in]a- input vector
[in]n- vector length
Returns
minimum of a vector