Question about making modifications to wind shear #144
Replies: 1 comment
-
Hi @michaelxu3 There's no easy switch to override the meteorology. I think the quickest way to achieve what your asking would be to create a custom The You may also be able to monkey patch the wind shear function to disable wind shear effects. I haven't tried it myself, but something like this could work. def override_wind_shear_normal(u_wind_top, u_wind_btm, v_wind_top, v_wind_btm, cos_a, sin_a, dz):
return np.zeros_like(u_wind_top)
from pycontrails.models.cocip import wind_shear
wind_shear.wind_shear_normal = override_wind_shear_normal
... |
Beta Was this translation helpful? Give feedback.
-
Hi, I've been using CoCiP to help with an experiment where I look at systematic biases in the ERA5 wind data and their effects on the outputs of contrail models. Is there a fast "switch" to allow me to get CoCiP to ignore the ERA5 input and set the wind shear (or other meteorological parameters) to a constant?
If not, I can make modifications to the code locally and am guessing that I just need to overwrite
ds_dz
and related variables incocip.py
every timestep and make sure I set the wind shear exponent as well, but just wanted to ask for guidance to make sure I don't overlook anything. I also wanted to ask what the "wind shear normal" ordsn_dz
(in the cocip model) specifically is and what it's used for.Beta Was this translation helpful? Give feedback.
All reactions