pangeo_fish.helpers.combine_pdfs#
- pangeo_fish.helpers.combine_pdfs(*, emission_ds: Dataset, acoustic_ds: Dataset, chunks: dict, dims=None, plot=False, **kwargs)#
Combine and normalize 2 probability distributions (pdfs).
- Parameters:
emission_ds (
xarray.Dataset) – Dataset of emission probabilitiesacoustic_ds (
xarray.Dataset) – Dataset of acoustic probabilitieschunks (mapping) – How to chunk the data
dims (mapping, optional) – Spatial dimensions to transpose the combined dataset. Relevant in case of a 2D, such as [“x”, “y”] or [“y”, “x”]
plot (
bool, default:False) – Whether to plot the sum of the distributions along the time dimension.
- Returns:
combined (
xarray.Dataset) – The combined pdffigure (
plt.Figure, orNone if ``plot=False``)