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

Bug: plot_profile may store the pressure level incorrectly #13

Open
icastorm opened this issue Aug 8, 2024 · 0 comments
Open

Bug: plot_profile may store the pressure level incorrectly #13

icastorm opened this issue Aug 8, 2024 · 0 comments

Comments

@icastorm
Copy link
Contributor

icastorm commented Aug 8, 2024

Issue

Users in the example code provided are encouraged to give pressure levels that define the bins in Pa. The plot_profile function intends to store the vertical pressure level in hPa, but then obtains these values by dividing by 1000 at line 101 of plots.py. The resulting incorrect vertical pressure levels can the be seen in the plots.

Proposed solutions

  1. Divide by 100 instead of 1000 to correctly convert from Pa to hPa
  2. Encourage users to give the bin ranges in hPa and convert to Pa when binning observations
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

1 participant