diff options
author | Thomas White <taw@physics.org> | 2020-07-10 15:59:22 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:53:45 +0200 |
commit | 4f8360cd0980f4bafadafc0ddf3f120f10813856 (patch) | |
tree | 6cafadc33526cb5099db1868e57490542f7ba5f4 /libcrystfel/src | |
parent | 0454d6debe414629d8f5da74347c0c833eff4159 (diff) |
Add show_panel (debug function)
Diffstat (limited to 'libcrystfel/src')
-rw-r--r-- | libcrystfel/src/image.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/libcrystfel/src/image.c b/libcrystfel/src/image.c index 349b8e20..1780526b 100644 --- a/libcrystfel/src/image.c +++ b/libcrystfel/src/image.c @@ -395,6 +395,27 @@ static double convert_to_m(double val, int units) } +static UNUSED void show_panel(struct detgeom_panel *p) +{ + STATUS("Panel '%s':\n", p->name); + STATUS(" Size %i x %i px\n", p->w, p->h); + STATUS(" Transformation [cnx] + [%6.2f %6.2f] [fs] = [x]\n", + p->fsx, p->ssx); + STATUS(" [cny] + [%6.2f %6.2f] [ss] = [y]\n", + p->fsy, p->ssy); + STATUS(" [cnz] + [%6.2f %6.2f] = [z]\n", + p->fsz, p->ssz); + STATUS(" corner x,y,z = %f, %f, %f px\n", + p->cnx, p->cny, p->cnz); + STATUS(" = %f, %f, %f mm\n", + p->cnx*p->pixel_pitch*1e3, + p->cny*p->pixel_pitch*1e3, + p->cnz*p->pixel_pitch*1e3); + STATUS(" %f adu/photon, max %f adu\n", + p->adu_per_photon, p->max_adu); +} + + void create_detgeom(struct image *image, const DataTemplate *dtempl) { struct detgeom *detgeom; |