pangeo_fish.helpers.compute_acoustic_pdf#
- pangeo_fish.helpers.compute_acoustic_pdf(*, emission_ds: Dataset, tag: DataTree, receiver_buffer: Quantity, chunk_time=24, dims: list[str] = ['cells'], plot=False, save=False, target_root='.', storage_options: dict = None, **kwargs)#
Compute a emission probability distribution from (acoustic) detection data.
- Parameters:
emission_ds (
xarray.Dataset) – A dataset that must have the variablestime,maskandcell_idstag (
xarray.DataTree) – The tag data. It must have the datasetsacousticandstationsreceiver_buffer (
pint.Quantity) – Maximum allowed detection distance for acoustic receiverschunk_time (
int, default:24) – Chunk size for the time dimensiondims (
listofstr, default:[``”cells”:py:class:`]`) -- The list of the dimensions. Either ``["x", "y"]or["cells"].plot (
bool, default:False) – Whether to return a plot of the datasettarget_root (
str, default:".") – Root of the folder to save the.zarrarray (under{target_root}/acoustic.zarr). Only used ifsave=Truestorage_options (mapping, optional) – Dictionary containing storage options for connecting to the S3 bucket. Only used if
save=True
- Returns:
acoustic_pdf (
xarray.Dataset) – The acoustic emission pdffigure (
plt.FigureorNone) – The plot ofacoustic_pdf, or None ifplot=False