-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exponent of effective_tau_cirrus #99
Comments
Thanks @Wessel99 ! I agree that the code differs from Schumann's paper, and that this most likely a bug. @roger-teoh, can you confirm this? |
Hi @Wessel99. Thank you so much for checking our codes in detail. We really appreciate this as you successfully identified another bug in the codes. Upon further investigation, both CoCiP Fortran and pycontrails are affected by a bug when calculating @zebengberg Yes, all the terms should be inside the exponent. The following is the correct version: return np.exp((tau_cirrus * delta_sc) - (tau_cirrus_eff * delta_sc_aps)) |
Glad to be of help! Thank you for clarifying which version is correct. |
Hi @Wessel99 , we just had a follow up discussion with Professor Schumann and identified another bug in the code and the paper. Professor Schumann identified a print error in Eq. (11) of Schumann et al. (2012), where the positions of exp(deltasc’* tauc – deltasc * tauc_eff) We are working to incorporate this change into pycontrails, and only expect very minor changes in the computed contrail RF < 0.1%. |
Fixed in #100 |
Description
Hello pycontrail team,
Looking at the 'effective_tau_cirrus' function in radiative_forcing.py, it seems that in the code the product (tau_cirrus_eff * delta_sc_aps) is outside the exponent, while the source paper places it inside the exponent. Which one is correct?
Best regards,
Wessel
Details
Additional Notes
def effective_tau_cirrus(
tau_cirrus: npt.NDArray[np.float_],
mue: npt.NDArray[np.float_],
delta_sc: npt.NDArray[np.float_],
delta_sc_aps: npt.NDArray[np.float_],
) -> npt.NDArray[np.float_]:
r"""
Calculate the effective optical depth of natural cirrus above the contrail,
e_sw
.The text was updated successfully, but these errors were encountered: