py_eddy_tracker.genericΒΆ

Tool method which use mostly numba

Functions

bbox_indice_regular

Get bbox indice of a contour in a regular grid.

build_circle

Build circle from center coordinates.

build_index

We expected 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 event 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 point.

flatten_line_matrix

Flat matrix and add on between each line.

hist_numba

Call numba histogram to speed up.

interp2d_geo

For geographic grid, test of cicularity.

local_to_coordinates

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

nearest_grd_indice

Get nearest grid indice from a position.

reverse_index

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

simplify

Will remove all middle/end point which are closer than precision.

split_line

Split x and y at each i change.

uniform_resample

Resample contours to have (nearly) equal spacing.

wrap_longitude

Will wrap contiguous longitude with reference as west bound.