# Spatial Utilities (geoana.spatial)#

The geoana.spatial module provides rudimentary functions for vectors and functions for converting between Cartesian, cylindrical and spherical coordinates.

 cylindrical_to_cartesian(grid[, vec]) Transform gridded locations or a set of vectors from cylindrical coordinates $$(r, \phi, z)$$ to Cartesian coordinates $$(x, y, z)$$. cartesian_to_cylindrical(grid[, vec]) Transform gridded locations or a set of vectors from Cartesian coordinates $$(x, y, z)$$ to cylindrical coordinates $$(r, \phi, z)$$. Compute the amplitudes for a set of input vectors in Cartesian coordinates. vector_distance(xyz[, origin]) Vector distances from a reference location to a set of xyz locations. distance(xyz[, origin]) Scalar distances between a reference location to a set of xyz locations. vector_dot(xyz, vector) Dot product between a vector and a set of vectors. repeat_scalar(scalar[, dim]) Stack spatially distributed scalar values to simplify multiplication with a vector. rotation_matrix_from_normals(v0, v1[, tol]) Generate a 3x3 rotation matrix defining the rotation from vector v0 to v1. rotate_points_from_normals(xyz, n0, n1[, x0]) Rotate a set of xyz locations about a specified point.