Closed rigoudyg closed 1 year ago
Thanks for reporting this! I'll take a look.
Thanks again for pointing this out. You were correct about the unit conversion. I'm guessing the sample datasets folks were working with all had pressure in hPa.
I put in a quick bug fix over in PR #152. Hopefully we can get this in quickly.
Thank you for your answer, once available, I'll install the next version for working on plot tools. Best regards, Gaëlle
The fix should now be in the new release on PyPI and conda-forge.
Please go ahead and reopen this issue if the update doesn't fix your problem.
Thanks again for reporting this!
Description The function add_height_from_pressure_axis works well if pressure data is in hPa. I work with pressure data in Pa (as required for CMIP6 data). In this case, the height axis is shifted.
To Reproduce
Expected behavior The height axis should begin at 100000Pa (i.e. 1000 hPa) and not at 1000Pa.
Screenshots
Fix I think that the pressure list must be converted back to input pressure units before being set to ticks.
OS: Linux - ubuntu
Environment Install via pip