RAVE
dealias.c File Reference

Function for dealiasing weather radar winds. More...

#include "dealias.h"

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_scan_by_quantity (PolarScan_t *scan, const char *quantity, double emax)
 Function for dealiasing polar scan data for the specified parameter.
 
int dealias_scan (PolarScan_t *scan)
 Function for dealiasing polar scan data for the VRAD parameter.
 
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.
 

Detailed Description

Function for dealiasing weather radar winds.

Author
Gunther Haase, SMHI
Date
2013-02-06
2018-04-11
  • If the number of valid velocity pixels on a circle with radius (range bin)*rscale is below a threshold, no dealiasing is performed.
  • Data representation of VRADH/V is no longer hard-coded.

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