geolime.utilities

Data:

Callable

Callable type; Callable[[int], str] is a function of (int) -> str.

List

The central part of internal API.

Classes:

Point(*args)

A zero dimensional feature

Functions:

angle_between_vectors(v1, v2)

Compute the angle between two vectors using the dot product

anisotropic_distance([a])

Anisotropic distance between two points according to the anisotropy matrix a.

arithmetic(angle)

Convert an angle from geographic to arithmetic

df_to_gdf(df[, x_col, y_col, crs])

Converts a DataFrame to a GeoDataFrame

distance_matrix(x1, x2[, distance])

Computes the distance matrix of two sets of points in the Euclidean space according to a distance.

euclidian_distance(x, y)

Compute the Euclidean distance between two points.

gdf_to_df(gdf[, copy])

Converts a DataFrame to a GeoDataFrame

norm(x[, ord, axis, keepdims])

Matrix or vector norm.

normalize(a, center)

(Adapted from Apach Commons normalizeAngle, MathUtils sources) Normalize an angle in a 2pi; wide interval around a center value.

pairwise(coords)

Computes pairwise distances

pdist(X[, metric])

Pairwise distances between observations in n-dimensional space.

plane_to_dir(azimuth, dip, pitch[, deg])

Convert plane angles to line angles.

rot_x(gamma[, deg, clockwise])

Rotation againt the X axis

rot_y(beta[, deg, clockwise])

Rotation againt the Y axis

rot_yxz(angles[, deg, clockwise])

Example of a convention

rot_z(alpha[, deg, clockwise])

Rotation againt the Z axis

rot_zyx(angles[, deg, clockwise])

Example of a convention (RGeoStats)

rotational_angles(angles)

Compute the angles in radians necessary for matrix rotation operation from geographic azimuth, dip and pitch angles defined in degrees

squareform(X[, force, checks])

Convert a vector-form distance vector to a square-form distance matrix, and vice-versa.