Calculating on-demand TOPS
For each pixel in the image, the algorithm calculates on-demand TOPS as follows:
-
Calculates the azimuthal equidistant (AzEQ) point around the radar.
-
Uses coordinates in AzEQ to calculate the distance from the radar(vector length).
-
Checks if the AzEQ point is in the radar's range for the TOPS product.
-
Calculates the azimuth angle to radar(atan2).
-
Determines the highest sweep with a reflectivity value over the threshold.
-
Optimizes the calculation of the maximum height by calculating the height of the highest point with reflectivity over threshold from the height of the highest sweep.
The calculation uses the maxHeightOfSweep by calculating upwards until reflectivity is no longer present.
The maximum height of a sweep represents the height with the minimum reflectivity as defined in the threshold.
The algorithm scans upwards until it finds a height for which there is no reflectivity value over the threshold. The last height with a valid reflectivity value is the result.
The final output of the product is a color-coded map of echo top heights for the selected dBZ threshold.
