Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

seaduck.lagrangian_budget

calculate_budget

calculate_budget(particle_array, data_slice, rhs_list, prefetch_vector_kwarg={}, lhs_name='lhs', dir_of_time=-1)

Calculate Lagrangian budget.

Parameters

Returns


check_particle_data_compat

check_particle_data_compat(xrpt, xrslc, tp, use_tracer_name=None, wall_names=('sx', 'sy', 'sz'), conv_name='divus', debug=False, allclose_kwarg={})

Check if you could use Lagrangian budget functionality.

Parameters

Returns


contr_p_relaxed

contr_p_relaxed(deltas, tres, step_dic, termlist, p=1, error_prefix='')

crude_convergence

crude_convergence(u_list)

deepcopy_inds

deepcopy_inds(temp)

dump_to_zarr

dump_to_zarr(neo, oce, filename, region_names=False, region_polys=None, preserve_checks=False)

fast_cumsum

fast_cumsum(shapes)

find_ind_frac_tres

find_ind_frac_tres(neo, oce, region_names=False, region_polys=None, by_type=True)

first_last_neither

first_last_neither(shapes, return_neither=True)

flatten

flatten(lstoflst, shapes=None)

ind_tend_uv

ind_tend_uv(ind, tp)

Return the index of the velocity node.

The node is not of the same index as the center point. iw determines where to return iw


lhs_contribution

lhs_contribution(t, scalar_dic, last, lhs_name='lhs')

particle2xarray

particle2xarray(p)

prefetch_scalar

prefetch_scalar(ds_slc, scalar_names)

prefetch_vector

prefetch_vector(ds_slc, xname='sxprime', yname='syprime', zname='szprime', same_size=True)

pseudo_motion

pseudo_motion(pt)

pt_ulist

pt_ulist(pt)

read_from_ds

read_from_ds(particle_ds, oce)

read_prefetched_scalar

read_prefetched_scalar(ind, scalar_names, prefetch)

read_wall_list

read_wall_list(neo, tp, prefetch=None, scalar=True)

redo_index

redo_index(pt)

residence_time

residence_time(pt)

store_lists

store_lists(pt, name, region_names=False, region_polys=None, **kwarg)

tres_fraction

tres_fraction(temp, first, last, fraction_first, fraction_last)

tres_update

tres_update(tres0, temp, first, last, fraction_first, fraction_last)

wall_index

wall_index(inds, iwall, tp)

which_wall

which_wall(pt)