Central-difference practice using a storm pressure field
A centered difference estimates the gradient at a grid point from samples on either side of that point. Divide by the full separation between the samples.
Start with How does an explicit diffusion step smooth a modeled cloud field?.
| Position | Pressure |
|---|---|
| −500 m | 99,900 Pa |
| +500 m | 99,800 Pa |
Worked example
Take p = 99,900 Pa at x = −500 m and 99,800 Pa at +500 m. The center gradient estimate is (99,800−99,900)/1,000 = −0.10 Pa/m. A curved profile can give a different derivative than the centered estimate, especially on a coarse grid.
Practice questions
- What is the pressure difference from west to east?
- Find the centered gradient.
- Swap the two pressures and recompute.
- Use the original pressures at −250 and +250 m.
- Why is −0.20 Pa/m incorrect for the original locations?
- What does a zero centered gradient mean if the centre pressure is not sampled?
Worked answers
Answer 1
−100 Pa.
Answer 2
−100/1,000 = −0.10 Pa/m.
Answer 3
The gradient becomes +0.10 Pa/m.
Answer 4
The span halves to 500 m, so the gradient is −0.20 Pa/m.
Answer 5
That uses half of the full sample separation.
Answer 6
The two endpoint values are equal. The interior can still contain pressure structure that the stencil cannot resolve.
- −100 Pa.
- −100/1,000 = −0.10 Pa/m.
- The gradient becomes +0.10 Pa/m.
- The span halves to 500 m, so the gradient is −0.20 Pa/m.
- That uses half of the full sample separation.
- The two endpoint values are equal. The interior can still contain pressure structure that the stencil cannot resolve.