gstools.tools.ang2dir
- gstools.tools.ang2dir(angles, dtype=<class 'numpy.float64'>, dim=None)[source]
Convert n-D spherical coordinates to Euclidean direction vectors.
- Parameters
angles (
list
ofnumpy.ndarray
) – spherical coordinates given as angles.dtype (data-type, optional) – The desired data-type for the array. If not given, then the type will be determined as the minimum type required to hold the objects in the sequence. Default: None
dim (
int
, optional) – Cut of information above the given dimension. Otherwise, dimension is determined by number of angles Default: None
- Returns
the array of direction vectors
- Return type