FilterRadarScan
Syntax | ||
int FilterRadarScan(int mode,int depth,int inx,struct RadarScan *src,struct RadarScan *dst,int prm); | ||
Header | ||
superdarn/filter.h | ||
Library | ||
filter | ||
Description | ||
The The threshold can be controlled using the lowest bit (1) of the argument mode. If the bit is set then a higher threshold is used. If the threshold is exceeded then the output cell is populated. The values of the output parameters are calculated by taking the median value of each parameter from the 3x3x3 input cells. The errors associated with the parameters are calculated from the standard deviation of the input parameters. The number of scans of data supplied to the function is given by the argument depth, and the first scan to apply the filter to is given by the argument inx. The argument src is a pointer to an array of structures containing the scan data. The filtered data is stored in the structure pointed to by the argument dst. The bits of the argument prm determine which parameters are included in the output. If the lowest bit (1) is set the velocity parameter is included in the output, if the second bit (2) is set then the power parameter is included, and if the third bit (4) is set the spectral width is included. The third bit of the argument mode is set then the scan information, such as the beam integration time, frequency and noise values, for the output are copied from the middle of the three input scans. If the bit is not set then the average value for all three scans is used. | ||
Returns | ||
Returns zero if . On error, (-1) is returned. | ||
Errors | ||
On error, (-1) is returned. | ||
Example | ||
|