How do you track an updraft centroid in model output?
Find an updraft centroid by averaging the positions of cells assigned to the updraft. A weighted centroid shifts toward cells with larger assigned weights.
Start with How do you check water-mass conservation in a cloud model?.
| Cell | Position | Weight |
|---|---|---|
| A | 0 km | 10 |
| B | 2 km | 30 |
Set up the experiment
Keep the same threshold and two included cells at x = 0 and 2 km. Give them weights 10 and 30. Predict which side the weighted centre will favor. The centroid is (0×10+2×30)/(10+30) = 1.5 km, while the unweighted value is 1 km. In two dimensions apply the same normalization to x and y.
Practice questions
- Double both weights.
- Exclude cell A by raising the threshold.
- What should you report if no cell passes the threshold?
Worked answers
Answer 1
The centroid stays at 1.5 km because numerator and denominator both double.
Answer 2
Cell B alone gives 2 km.
Answer 3
The centroid is unavailable. The denominator is zero and there is no diagnosed updraft in the selected mask.
- The centroid stays at 1.5 km because numerator and denominator both double.
- Cell B alone gives 2 km.
- The centroid is unavailable. The denominator is zero and there is no diagnosed updraft in the selected mask.