Skip to content

Commit

Permalink
FIX: Fix for dimensions issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
zssherman committed Sep 26, 2024
1 parent e0e2cab commit 9e6927a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion act/plotting/windrosedisplay.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ def plot_data(
# Produce direction (x-axis) and speed (y-axis) plots displaying the mean
# as the contours.
spd_data = ds[spd_field].values
spd_bins = np.linspace(0, ds[spd_field].max(), num_data_bins + 1)
spd_bins = np.linspace(0, ds[spd_field].values.max(), num_data_bins + 1)
spd_bins = np.insert(spd_bins, 1, calm_threshold)
# Set up an array and cycle through the data, binning them by speed/direction
mean_data = np.zeros([len(bins), len(spd_bins)])
Expand Down

0 comments on commit 9e6927a

Please sign in to comment.