diff options
author | Thomas White <taw@physics.org> | 2013-06-02 13:53:28 -0700 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2013-06-02 13:53:28 -0700 |
commit | 8a44164cfd5013687a0eb5cb10dc39c44db399c0 (patch) | |
tree | 5a6c35a3d3e93d5d7d19c83e29e34ff61c31c95f /libcrystfel/src/stream.c | |
parent | bf06abfb01d009d604c9f734e4d77ad0bf9b2eba (diff) |
Refine rigid group positions and orientations
Diffstat (limited to 'libcrystfel/src/stream.c')
-rw-r--r-- | libcrystfel/src/stream.c | 20 |
1 files changed, 20 insertions, 0 deletions
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; j<i->det->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); |