Skip to content

Commit

Permalink
Change RH plotting style
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasmarke committed Oct 11, 2024
1 parent 021b727 commit 21967f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mwrpy/plots/generate_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,9 +506,9 @@ def _plot_colormesh_data(ax, data_in: np.ndarray, name: str, axes: tuple, nc_fil
if name == "relative_humidity":
assert isinstance(data_in, ma.MaskedArray)
data[data_in.mask] = np.nan
data[data > 1.0] = 1.0
data[data > 1.0] = 1.001
data[data < 0.0] = 0.0
data_in[data_in > 1.0] = 1.0
data_in[data_in > 1.0] = 1.001
data_in[data_in < 0.0] = 0.0
data *= 100.0
data_in *= 100.0
Expand Down

0 comments on commit 21967f9

Please sign in to comment.