meshutil
clean_lat(scalars, period, t=0)
Remove outliers and return median of the remaining lat values
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
scalars |
ndarray[float]
|
List of floats |
required |
period |
int
|
Period of the data. |
required |
t |
int
|
Time where we want to start. Defaults to 0. |
0
|
Returns:
| Name | Type | Description |
|---|---|---|
tuple |
(float, ndarray)
|
single LAT value, histogram |
distance(n1, n2)
Calculate Euclidian distance between two points
get_angle(x, y, origin)
Calculate angle between the line (x,y)-origin and the x-axis
get_normal(points)
Calculate the best-fitting plane (normal)
get_rotation_matrix(normal)
Calculate the rotation matrix to align the normal with the z-axis