Skip to content

Commit

Permalink
Merge pull request #61 from AdamTheisen/cfad_update
Browse files Browse the repository at this point in the history
ENH: Bug fix for cfad plot for height values when setting coords
  • Loading branch information
AdamTheisen authored Feb 21, 2024
2 parents 9a5a7fb + 22ea0ec commit 87f033e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radtraq/plotting/cfad.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def calc_cfad(obj, variable, height_variable=None, xbins=None):
)
hist = np.log10(np.array(hist))

coords = {'x': xbins[:-1], height_variable: height}
coords = {'x': xbins[:-1], height_variable: height.values}
dims = [height_variable, 'x']
attrs = {'long_name': f'CFAD for {variable}', 'units': '1'}

Expand Down

0 comments on commit 87f033e

Please sign in to comment.