Skip to content
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

Calculation for thickness in da_predictor_rttov #2021

Open
IanhSi opened this issue Mar 14, 2024 · 1 comment
Open

Calculation for thickness in da_predictor_rttov #2021

IanhSi opened this issue Mar 14, 2024 · 1 comment

Comments

@IanhSi
Copy link

IanhSi commented Mar 14, 2024

The 1000-300hPa thickness is calculated as follows in WRFDA:
code1: pred(1) = kth * sum(tv(index300+1:index1000) * dlp(index300+1:index1000)) + add_thk.

However, I found there might be an index error in the array, causing misalignment. The correct code should be
code2: pred(1) = kth * sum(tv(index300:index1000-1) * dlp(index300:index1000-1)) + add_thk.

For validation, I used MetPy's metpy.calc.thickness_hydrostatic, and the calculated values for 1000-300 thickness in MetPy, code1 and code2 are 9586.05, 9270.26, and 9581.17, respectively.

@weiwangncar
Copy link
Collaborator

@liujake Can you take a look at this? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants