pangeo_fish.helpers.optimize_pdf#
- pangeo_fish.helpers.optimize_pdf(*, ds: Dataset, earth_radius: Quantity, adjustment_factor: float, truncate: float | None, maximum_speed: Quantity, tolerance: float, dims: list[str] = ['cells'], conv_method: str = 'HealpixConv', save_parameters=False, storage_options: dict = None, target_root='.', **kwargs) dict#
Optimize a temporal probability distribution.
- Parameters:
ds (
xarray.Dataset) – Dataset of emission probabilitiesearth_radius (
pint.Quantity) – Radius of the Earth used for distance calculationsadjustment_factor (
float) – Factor value for the maximum fish’s displacementtruncate (
float) – Truncating factor for convolution processmaximum_speed (
pint.Quantity) – Maximum fish’s velocitytolerance (
float) – Tolerance level for the optimised parameter search computationdims (
listofstr, default:[``”cells”:py:class:`]`) -- The list of the dimensions. Either ``["x", "y"]or["cells"]save_parameters (
bool, default:False) – Whether to save the results under{target_root}/parameters.jsontarget_root (
str, default:".") – Root of the folder to save the results as a json fileparameters.jsonOnly used ifsave_parameters=Truestorage_options (
dict, optional) – Dictionary containing storage options for connecting to the S3 bucket. Only used ifsave_parameters=Trueand that the saving is done on a S3 bucket.
- Returns:
params (
dict) – A dictionary containing the optimization results (mainly, the sigma value of the Brownian movement model)