Calculating ML CCL #3308
-
Hello! I'm working on a project and am looking to find a way to calculate the ML CCL utilizing MetPy. I see there's a way to calculate the mixed_layer, and of course the CCL calculation, but do we have a way to combine the two? Edit: For a bit of context, the ML (Mixed Layer) is being considered as using the mean values between the surface and 100mb above the surface for calculations. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
import metpy.calc as mpcalc
from metpy.units import units
# Read data
p, t, td = ...
ccl = mpcalc.ccl(p, t, td, mixed_layer_depth=100 * units.hPa) |
Beta Was this translation helpful? Give feedback.
ccl
can be passed an optionalmixed_layer_depth
argument to have it calculate the starting point as the mixed layer over that depth. So you'd probably want to use: