py_eddy_tracker.genericΒΆ

Tool method which use mostly numba

Functions

bbox_indice_regular

Get bbox index of a contour in a regular grid.

build_circle

Build circle from center coordinates.

build_index

We expect that variable is monotonous, and return index for each step change.

coordinates_to_local

Take latlong coordinates to transform in local coordinates (in m).

count_consecutive

Count consecutive events every False flag count restart

cumsum_by_track

Cumsum by track.

distance

Compute distance between points from each line.

distance_grid

Get distance for every couple of points.

flatten_line_matrix

Flat matrix and add on between each line.

hist_numba

Call numba histogram to speed up.

interp2d_bilinear

Bilinear interpolation with wrapping if circular

interp2d_geo

For geographic grid, test of cicularity.

interp2d_nearest

Nearest interpolation with wrapping if circular

local_to_coordinates

Take local coordinates (in m) to transform to latlong.

nearest_grd_indice

Get nearest grid index from a position.

reverse_index

Compute a list of indices, which are not in index.

simplify

Will remove all middle/end points closer than precision.

split_line

Split x and y at each i change.

uniform_resample

Resample contours to have (nearly) equal spacing.

window_index

Give for a fixed half_window each start and end index for each x0, in an unsorted array.

wrap_longitude

Will wrap contiguous longitude with reference as western boundary.