EWED profiles are not smooth enough to map directly to a single fixed free troposphere lapse rate.
Instead, we want an option to set the free troposphere lapse rate as a piecewise linear function. For the timing being with two segments only.
Profiles will look like:
h: 0, h, h, z_ft, z_ft+400
theta: [theta, theta, theta+dtheta, theta+dtheta+gamma_theta * (z_ft-h), theta_dtheta+gamma_theta*(z_ft - h) + gamma_theta2 * 400
q: similar
Note: if h > z_ft, we skip that segment.
So we need to add z_ft (initially as number, could later be extended to number array), gamma_theta2, and gamma_q_2.
EWED profiles are not smooth enough to map directly to a single fixed free troposphere lapse rate.
Instead, we want an option to set the free troposphere lapse rate as a piecewise linear function. For the timing being with two segments only.
Profiles will look like:
h: 0, h, h, z_ft, z_ft+400
theta: [theta, theta, theta+dtheta, theta+dtheta+gamma_theta * (z_ft-h), theta_dtheta+gamma_theta*(z_ft - h) + gamma_theta2 * 400
q: similar
Note: if h > z_ft, we skip that segment.
So we need to add
z_ft(initially as number, could later be extended to number array),gamma_theta2, andgamma_q_2.