Static Public Member Functions | |
static Image< float > | convertToImage (const RadialSet &rs, float scale=1.0, int accuracy=10) |
Converts the given radial set into an Image. | |
static Image< float > | convertToImage (const RadialSet &rs, const PolarCartesianLookup &lookup) |
Efficiently converts the given radial set into an Image using precomputed values in the lookup array. | |
static CartesianGrid2D | convertToCartesianGrid2D (const RadialSet &rs, const PolarCartesianLookup &lookup) |
Efficiently converts the given radial set into a CartesianGrid2D using precomputed values in the lookup array. | |
static PolarGrid | convertToPolarGrid (const LatLonGrid &llgrid, const LatLonPolarLookup &lookup) |
Resamples the given LatLonGrid and fits the nearest data value into a PolarGrid whose radar location and resolutions and sizes are given by the lookup. | |
static LatLonGrid | convertToLatLonGrid (const RadialSet &llgrid, const PolarLatLonLookup &lookup) |
Resamples the given LatLonGrid and fits the nearest data value into a PolarGrid whose radar location and resolutions and sizes are given by the lookup. | |
Classes | |
class | LatLonPolarLookup |
A lookup that saves the computations required in doing a latlongrid-to-polargrid lookup. More... | |
struct | PolarCartesianLookup |
Precomputed results that can improve the efficiency of Polar-Cartesian mapping. More... | |
struct | PolarLatLonLookup |
Precomputed results that can improve the efficiency of Polar-LatLon mapping. More... | |
class | RadialSetLookup |
This class provides an efficient way to get the radial number and gate number corresponding to an azimuth-range pair. More... |
static CartesianGrid2D code::DataConverter::convertToCartesianGrid2D | ( | const RadialSet & | rs, | |
const PolarCartesianLookup & | lookup | |||
) | [static] |
Efficiently converts the given radial set into a CartesianGrid2D using precomputed values in the lookup array.
The polar-to-cartesian mapping is a simple nearest-neighbor method.
rs | the radial set with the data | |
lookup | Precomputation results |
static Image<float> code::DataConverter::convertToImage | ( | const RadialSet & | rs, | |
const PolarCartesianLookup & | lookup | |||
) | [static] |
Efficiently converts the given radial set into an Image using precomputed values in the lookup array.
The location, time, etc. are lost in this conversion. What is obtained is a cartesian grid suitable for image processing tasks. The polar-to-cartesian mapping is a simple nearest-neighbor method.
rs | the radial set with the data | |
lookup | Precomputation results |
static Image<float> code::DataConverter::convertToImage | ( | const RadialSet & | rs, | |
float | scale = 1.0 , |
|||
int | accuracy = 10 | |||
) | [static] |
Converts the given radial set into an Image.
See the convertToImage that takes a PolarCartesianLookup for a more efficient method.
The location, time, etc. are lost in this conversion. What is obtained is a cartesian grid suitable for image processing tasks. The polar-to-cartesian mapping is a simple nearest-neighbor method.
rs | the radial set with the data | |
scale | A value of scale < 1 indicates a low-resolution image while scale > 1 indicates a zoomed in image. The extent of the image is that of the radial set. | |
accuracy | How accurate do you want the conversion to be? Larger numbers denote greater accuracy. Use at least 5. This is the accuracy of the polar-to-cartesian mapping. |
static LatLonGrid code::DataConverter::convertToLatLonGrid | ( | const RadialSet & | llgrid, | |
const PolarLatLonLookup & | lookup | |||
) | [static] |
Resamples the given LatLonGrid and fits the nearest data value into a PolarGrid whose radar location and resolutions and sizes are given by the lookup.
WARNING! This is a 2D conversion; for 3D conversion (recommended), you should use w2merger or its classes.
static PolarGrid code::DataConverter::convertToPolarGrid | ( | const LatLonGrid & | llgrid, | |
const LatLonPolarLookup & | lookup | |||
) | [static] |
Resamples the given LatLonGrid and fits the nearest data value into a PolarGrid whose radar location and resolutions and sizes are given by the lookup.