geometry

geometry

Functions

Types and Values

Description

Functions

find_intersections ()

RefList *
find_intersections (struct image *image,
                    Crystal *cryst,
                    PartialityModel pmodel);

find_intersections_to_res ()

RefList *
find_intersections_to_res (struct image *image,
                           Crystal *cryst,
                           PartialityModel pmodel,
                           double max_res);

update_partialities ()

void
update_partialities (Crystal *cryst,
                     PartialityModel pmodel);

Updates the partialities of cryst 's reflections according to pmodel and the current state of the crystal (e.g. its unit cell parameters).

Parameters

cryst

A Crystal

 

pmodel

A PartialityModel

 

polarisation_correction ()

void
polarisation_correction (RefList *list,
                         UnitCell *cell,
                         struct image *image);

sphere_fraction ()

double
sphere_fraction (double rlow,
                 double rhigh,
                 double pr);

gaussian_fraction ()

double
gaussian_fraction (double rlow,
                   double rhigh,
                   double pr);

r_gradient ()

double
r_gradient (UnitCell *cell,
            int k,
            Reflection *refl,
            struct image *image);

x_gradient ()

double
x_gradient (int param,
            Reflection *refl,
            UnitCell *cell,
            struct panel *p,
            double lambda);

y_gradient ()

double
y_gradient (int param,
            Reflection *refl,
            UnitCell *cell,
            struct panel *p,
            double lambda);

Types and Values

enum PartialityModel

A PartialityModel describes a geometrical model which can be used to calculate spot partialities and Lorentz correction factors.

Members

PMODEL_UNITY

Set all all partialities and Lorentz factors to 1.

 

PMODEL_SCSPHERE

Sphere model with source coverage factor included

 

PMODEL_SCGAUSSIAN

Gaussian model with source coverage factor included

 

PMODEL_RANDOM

Randomly assigned partialities

 

enum gparam

Members

GPARAM_ASX

   

GPARAM_ASY

   

GPARAM_ASZ

   

GPARAM_BSX

   

GPARAM_BSY

   

GPARAM_BSZ

   

GPARAM_CSX

   

GPARAM_CSY

   

GPARAM_CSZ

   

GPARAM_R

   

GPARAM_DIV

   

GPARAM_DETX

   

GPARAM_DETY

   

GPARAM_CLEN

   

GPARAM_OSF

   

GPARAM_BFAC