From 8a44164cfd5013687a0eb5cb10dc39c44db399c0 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sun, 2 Jun 2013 13:53:28 -0700 Subject: Refine rigid group positions and orientations --- libcrystfel/src/stream.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'libcrystfel/src/stream.c') diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c index 91f644fa..8c12aa3b 100644 --- a/libcrystfel/src/stream.c +++ b/libcrystfel/src/stream.c @@ -222,6 +222,26 @@ void write_chunk(Stream *st, struct image *i, struct hdfile *hdfile, i->det->panels[j].name, i->det->panels[j].clen); } + for ( j=0; jdet->n_rigid_groups; j++ ) { + + struct rigid_group *rg = i->det->rigid_groups[j]; + + fprintf(st->fh, "rg_delta_%s_fsx = %f\n", + rg->name, rg->d_fsx); + fprintf(st->fh, "rg_delta_%s_ssx = %f\n", + rg->name, rg->d_ssx); + fprintf(st->fh, "rg_delta_%s_cnx = %f\n", + rg->name, rg->d_cnx); + + fprintf(st->fh, "rg_delta_%s_fsy = %f\n", + rg->name, rg->d_fsx); + fprintf(st->fh, "rg_delta_%s_ssy = %f\n", + rg->name, rg->d_ssx); + fprintf(st->fh, "rg_delta_%s_cny = %f\n", + rg->name, rg->d_cnx); + + } + } copy_hdf5_fields(hdfile, i->copyme, st->fh); -- cgit v1.2.3