py_eddy_tracker.genericΒΆ
Tool method which use mostly numba
Functions
Get bbox index of a contour in a regular grid. |
|
Build circle from center coordinates. |
|
We expect that variable is monotonous, and return index for each step change. |
|
Take latlong coordinates to transform in local coordinates (in m). |
|
Count consecutive events every False flag count restart |
|
Cumsum by track. |
|
Compute distance between points from each line. |
|
Get distance for every couple of points. |
|
Flat matrix and add on between each line. |
|
Call numba histogram to speed up. |
|
Bilinear interpolation with wrapping if circular |
|
For geographic grid, test of cicularity. |
|
Nearest interpolation with wrapping if circular |
|
Take local coordinates (in m) to transform to latlong. |
|
Get nearest grid index from a position. |
|
Compute a list of indices, which are not in index. |
|
Will remove all middle/end points closer than precision. |
|
Split x and y at each i change. |
|
Resample contours to have (nearly) equal spacing. |
|
Give for a fixed half_window each start and end index for each x0, in an unsorted array. |
|
Will wrap contiguous longitude with reference as western boundary. |