We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following block in summary_plot_global_ts() has nothing to do with plotting and should be its own function:
summary_plot_global_ts()
spatial_op = diag_metadata.get("spatial_op", "average") if spatial_op == "average": to_plot = da_weighted.mean(dim=reduce_dims) to_plot.attrs = da.attrs if "display_units" in diag_metadata: to_plot = conv_units(to_plot, diag_metadata["display_units"]) if spatial_op == "integrate": to_plot = da_weighted.sum(dim=reduce_dims) to_plot.attrs = da.attrs to_plot.attrs["units"] += f" {weights.attrs['units']}" if "integral_display_units" in diag_metadata: to_plot = conv_units( to_plot, diag_metadata["integral_display_units"], units_scalef=diag_metadata.get("integral_unit_conv"), )
Besides separating computation and plotting, if it is pulled out then it can then be wrapped in xpersist and cached (if so desired).
xpersist
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following block in
summary_plot_global_ts()
has nothing to do with plotting and should be its own function:Besides separating computation and plotting, if it is pulled out then it can then be wrapped in
xpersist
and cached (if so desired).The text was updated successfully, but these errors were encountered: