coord#

biotite.structure.coord(item: SingleCoord | Coord[N] | MultiCoord[M, N] | Sequence[Any]) → ndarray[tuple[XYZ], dtype[floating]] | ndarray[tuple[N, XYZ], dtype[floating]] | ndarray[tuple[M, N, XYZ], dtype[floating]] | ndarray[source]#

Get the atom coordinates of the given array.

This may be directly and Atom, AtomArray or AtomArrayStack or alternatively an (n x 3) or (m x n x 3) ndarray containing the coordinates.

Parameters:
itemAtom or AtomArray or AtomArrayStack or ndarray

Returns the coord attribute, if item is an Atom, AtomArray or AtomArrayStack. Directly returns the input, if item is a ndarray.

Returns:
coordndarray

Atom coordinates.