Skip to content

Commit

Permalink
unit registry inconsistencies
Browse files Browse the repository at this point in the history
  • Loading branch information
observingClouds committed Oct 9, 2023
1 parent cb11207 commit 9b788cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/plot_radiosonde_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ def main():
filename = args["inputfile"]

data = xr.open_dataset(filename)
data = data.metpy.quantify()
data = data.pint.quantify(unit_registry=units)
for coord_name in data.coords:
data.coords[coord_name] = data.coords[coord_name].metpy.quantify()
data.coords[coord_name] = data.coords[coord_name].pint.quantify()
if "ascent" in filename:
direction = "ascent"
elif "descent" in filename:
Expand Down

0 comments on commit 9b788cb

Please sign in to comment.