libcrystfel 0.11.1
|
Functions | |
int | write_reflist (const char *filename, RefList *list) |
int | write_reflist_2 (const char *filename, RefList *list, SymOpList *sym) |
RefList * | read_reflections (const char *filename) |
RefList * | read_reflections_2 (const char *filename, char **sym) |
RefList * | read_reflections_3 (const char *filename, char **sym, UnitCell **cell) |
int | check_list_symmetry (RefList *list, const SymOpList *sym) |
int | find_equiv_in_list (RefList *list, signed int h, signed int k, signed int l, const SymOpList *sym, signed int *hu, signed int *ku, signed int *lu) |
RefList * | asymmetric_indices (RefList *in, const SymOpList *sym) |
void | resolution_limits (RefList *list, UnitCell *cell, double *rmin, double *rmax) |
double | max_intensity (RefList *list) |
RefList * | res_cutoff (RefList *list, UnitCell *cell, double min, double max) |
RefList * | copy_reflist (RefList *list) |
void | free_contribs (RefList *list) |
void | reflist_add_command_and_version (RefList *list, int argcv, char *argv[]) |
int | write_to_mtz (RefList *reflist, SymOpList *sym, UnitCell *cell, double min_res, double max_res, const char *filename, const char *dataset_name, const char *crystal_name, const char *project_name, int bij) |
int | write_to_xds (RefList *reflist, SymOpList *sym, UnitCell *cell, double min_res, double max_res, const char *filename) |
int | libcrystfel_can_write_mtz (void) |
Reflection list utility functions.
asymmetric_indices:
in | A RefList |
sym | A SymOpList |
This function creates a newly allocated copy of in, but indexed using the asymmetric indices according to sym instead of the original indices. The original indices are stored and can be retrieved using get_symmetric_indices() if required.
Returns: the new RefList, or NULL on failure.
Checks that the symmetry of list
is indeed sym
.
list | A list of reflections |
sym | Symmetry of the reflection list |
copy_reflist:
list | A RefList |
Returns: A copy of RefList.
|
extern |
free_contribs:
list | A RefList |
Goes through list
and frees all the reflection contribution structures.
|
extern |
max_intensity:
list | A RefList |
Returns: The maximum intensity in list
.
|
extern |
read_reflections:
filename | Filename to read from |
This function reads a reflection list from a file.
Returns: A RefList read from the file, or NULL on error
|
extern |
read_reflections_2:
filename | Filename to read from |
sym | Pointer to a "char *" at which to store the symmetry |
This function reads a reflection list from a file, including the point group name from the header (e.g. "4/mmm").
The file can be a CrystFEL reflection data file, or an MTZ file provided that CrystFEL has been compiled with libCCP4 available. MTZ files contain the unit cell parameters - if you want this information, use read_reflections_2 instead.
Returns: A RefList read from the file, or NULL on error
read_reflections_3:
filename | Filename to read from |
sym | Pointer to a "char *" at which to store the symmetry |
cell | Pointer to a "UnitCell *" at which to store the unit cell |
This function reads a reflection list from a file, including the point group name from the header (e.g. "4/mmm").
The file can be a CrystFEL reflection data file, or an MTZ file provided that CrystFEL has been compiled with libCCP4 available. The unit cell will only be returned when reading from an MTZ file - CrystFEL reflection data files don't contain this information.
Returns: A RefList read from the file, or NULL on error
res_cutoff:
list | A RefList |
cell | A UnitCell with which to calculate 1/d values for list |
min | Minimum acceptable value of 1/d |
max | Maximum acceptable value of 1/d |
Applies a resolution cutoff to list
, returning the new version and freeing the old version.
Returns: A new RefList with resolution cutoff applied
resolution_limits:
list | A RefList |
cell | A UnitCell |
rmin | Place to store the minimum 1/d value |
rmax | Place to store the maximum 1/d value |
This function calculates the minimum and maximum values of 1/d, where 2dsin(theta) = wavelength. The answers are in m^-1.
|
extern |
This function writes the contents of list to file,
Reflections which have a redundancy of zero will not be written.
The resulting list can be read back with read_reflections_from_file() or read_reflections().
This is a convenience function which simply opens filename and then calls write_reflections_to_file.
filename | Filename |
list | The reflection list to write |
This function writes the contents of list to file,
Reflections which have a redundancy of zero will not be written.
The resulting list can be read back with read_reflections_from_file() or read_reflections().
filename | Filename |
list | The reflection list to write |
sym | A SymOpList describing the symmetry of the list |