Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hotfix: Prevent div-by-zero in dynamic ratio colorbar range
gcpy/plot/six_plot.py - In routine "compute_vmin_vmax_for_ratio_plots": - If vmin is nonzero, compute vmax = 1.0 / vmin - If vmin is zero, then - Set vmax = np.abs(np.nanmax(plot_val) - Set vmin = 1.0 / vmax - Values will be swapped (as before) if vmin > vmax This fix is necessary in order potential div-by-zero errors in the computation of the dynamic ratio colorbar limits vmin & vmax. Signed-off-by: Bob Yantosca <[email protected]>
- Loading branch information