The CSYM library is centred around a data file syminfo.lib
which is auto-generated from sgtbx (the Space Group Toolbox of cctbx). A description of the contents of this file is given in the documentation of the Fortran API.
A particular spacegroup in a particular setting is loaded into an in-memory data structure by requesting a particular spacegroup name, number, or set of operators. See the functions ccp4spg_load_by_standard_num
, ccp4spg_load_by_ccp4_num
, ccp4spg_load_by_spgname
, ccp4spg_load_by_ccp4_spgname
and ccp4_spgrp_reverse_lookup
. Information on the in-memory data structure is given in ccp4_spg.h The memory can be freed by the function ccp4spg_free
.
Functions are provided to:
ccp4spg_symbol_Hall
, etc. (members of the structure can of course be obtained directly) ccp4spg_is_in_asu
, ccp4spg_is_centric
, ccp4spg_get_multiplicity
, ccp4spg_is_sysabs
, etc. set_fft_grid
Symmetry operators are expressed in a variety of ways:
ccp4_symop
, which consists of a 3 x 3 rotation matrix and a translation vector. See examples on ftp area