sdynpy.core.sdynpy_geometry.coordinate_system_array

coordinate_system_array(id=1, name='', color=1, cs_type=0, matrix=array([[1., 0., 0.], [0., 1., 0.], [0., 0., 1.], [0., 0., 0.]]), structured_array=None)[source]

Creates an array that specifies coordinate systems in the geometry

Creates an array of coordinate systems that specify directions of sensors in a test or analysis. Coordinate system arrays can be created using a numpy structured array or individual arrays for each attribute. Multidimensional arrays can be used.

Parameters
  • id (ndarray) – Integer array corresponding to the id of the coordinate systems. Input will be cast to an integer (i.e. 2.0 -> 2, 1.9 -> 1)

  • name (ndarray) – name of the coordinate systems

  • color (ndarray) – color of the coordinate systems as integers

  • cs_type (ndarray) – Coordinate system types (0 = Cartesian, 1 = Polar, 2 = Spherical)

  • matrix (ndarray) – Coordinate system transformation matrix with shape [… x 4 x 3]

  • structured_array (ndarray (structured)) – Alternatively to the individual attributes, a single numpy structured array can be passed, which should have the same name as the inputs to the function listed above.

Returns

coordinate_system_array

Return type

CoordinateSystemArray