aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/predict-refine.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel/src/predict-refine.c')
-rw-r--r--libcrystfel/src/predict-refine.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libcrystfel/src/predict-refine.c b/libcrystfel/src/predict-refine.c
index a9ba6966..43a52cae 100644
--- a/libcrystfel/src/predict-refine.c
+++ b/libcrystfel/src/predict-refine.c
@@ -83,11 +83,11 @@ static void twod_mapping(double fs, double ss, double *px, double *py,
{
double xs, ys;
- xs = fs*p->fsx + ss*p->ssx;
- ys = fs*p->fsy + ss*p->ssy;
+ xs = fs*p->fsx + ss*p->ssx; /* pixels */
+ ys = fs*p->fsy + ss*p->ssy; /* pixels */
- *px = (xs + p->cnx) * p->pixel_pitch;
- *py = (ys + p->cny) * p->pixel_pitch;
+ *px = (xs + p->cnx) * p->pixel_pitch; /* metres */
+ *py = (ys + p->cny) * p->pixel_pitch; /* metres */
}
@@ -314,8 +314,8 @@ int refine_radius(Crystal *cr, struct image *image)
}
-static void update_detector(struct detgeom *det, double xoffs, double yoffs,
- double coffs)
+static void update_detector(struct detgeom *det,
+ double xoffs, double yoffs, double coffs)
{
int i;