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. |
Answered by
dopplershift
Dec 7, 2023
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) |
5 replies
Answer selected by
dopplershift
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cclcan be passed an optionalmixed_layer_depthargument to have it calculate the starting point as the mixed layer over that depth. So you'd probably want to use: