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