polarResample(a)

Resamples polar data to ensure full 0-360 coverage.


Syntax

o_polarResample(polarCoord,pStep)
polarCoord: Array 1D Coord or PComplex - input data
   for Coords, phase is "X", mag is "Y".
pStep: scalar real - desired step size of output data
return: Array 1D Coord or PComplex - resampled data from 0 to 360-pStep degrees

Usage

Use this to fill in missing polar data by use of interpolation.

Location

menu: veeos ==> Data ==> Circles ==> polarResample

library: dataLib

Example

see examples from veeos menu

Notes

This was written for the case of circular measurements wherein data is taken at multiple angles, but some angles are missing from the data. A typical case would be antenna measurements as in gain vs angle using a statistical measurement (i.e. random angles chosen). The data needs to be resampled for subsequent processing by a tool that requires constant angular steps. This function takes in data in either coordinates or as PComplex values, resamples, and then returns data in the same type as was input. No loops are used so this should be fairly fast. And since linear interpolation is used it should also be quite robust.

Importantly, the phase input needs to be monotonically increasing. Note that pStep is adjusted automatically such that an integer number of steps are created for 360 degrees.

Reference

Dependencies

Supported On

VEE 7.0+, all platforms

See Also

polarRegress


© 2015-2025. All Rights Reserved. Stan Bischof (stan@worldbadminton.com). Last updated 13 February 2024 08:50.