-
Notifications
You must be signed in to change notification settings - Fork 408
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
UndefinedUnitError: 'dBZ' is not defined in the unit registry #3341
Comments
@dopplershift @dcamron - this issue also came up with Py-ART CI... any interest in a PR adding this to the registry of units in MetPy? I can submit a PR if this sounds like a reasonable path forward. |
For those not following the PR, happy to add dimensionally correct log units since we have accidentally expanded the code paths ( |
Thank you for your prompt response! I changed the units of the original data, which may not be in compliance with the regulations, but it does allow me to complete the plotting. The method of adding 'dBZ' to the registry fundamentally solved the problem. Thank you for your contribution! |
Thank you for your prompt response! I changed the units of the original data, which may not be in compliance with the regulations, but it does allow me to complete the plotting. The method of adding 'dBZ' to the registry fundamentally solved the problem. Thank you for your contribution! |
The fixup in Unidata#3255 inadvertently added unit parsing to all code paths in interpolate_to_slice. This breaks any usages that passed in data with unknown units. Since interpolate_to_slice has no need to do any unit handling, avoid this unless we're actually given a quantity.
The fixup in Unidata#3255 inadvertently added unit parsing to all code paths in interpolate_to_slice. This breaks any usages that passed in data with unknown units. Since interpolate_to_slice has no need to do any unit handling, avoid this unless we're actually given a quantity.
What went wrong?
Hello everyone!
![微信截图_20240102014557](https://private-user-images.githubusercontent.com/152379644/293600180-72281de2-5a8b-4498-977e-fb9a5b7e193f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0MjAxMDcsIm5iZiI6MTcyMTQxOTgwNywicGF0aCI6Ii8xNTIzNzk2NDQvMjkzNjAwMTgwLTcyMjgxZGUyLTVhOGItNDQ5OC05NzdlLWZiOWE1YjdlMTkzZi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxOVQyMDEwMDdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01Mjc3MGJkYzJjMzNmMGY4ZTVhODAxMjE0NjMxNDJhODk5NWZmZTQ5MzFjMzQwMWQ5ZGI1NzM5MGRlNDY0ZjJlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.9h68Bkfe5Hav1G7xbDhZrexNmYgQx3_Pt2KBxYfRddQ)
I want to create a radar reflectivity profile, but I encountered an issue when using the cross_section function. It seems that the unit 'dBZ' for reflectivity is not defined, although the dataset used has already defined its unit. I would like to know the reason for this problem and hope that you can provide assistance.
Operating System
Windows
Version
1.6.0
Python Version
3.11.4
Code to Reproduce
Errors, Traceback, and Logs
The text was updated successfully, but these errors were encountered: