aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/hdf5-file.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2015-03-19 09:45:03 +0100
committerThomas White <taw@bitwiz.org.uk>2015-03-19 09:46:25 +0100
commita3bfd1e7199cf0d366667f189ff488d6601f80e9 (patch)
treed6b2ccb819e1d958c2a207d7c799ecbfcec0704a /libcrystfel/src/hdf5-file.c
parenta2d166507007bc68b6e2e66cff745c44975b5baf (diff)
hdf5_read(): Create simple geometry
This allows unpack_panels() to be called, and hence the same data structures to be available in the simple and geometry cases. Some changes were necessary to hdfsee, which previously created the simple geometery itself
Diffstat (limited to 'libcrystfel/src/hdf5-file.c')
-rw-r--r--libcrystfel/src/hdf5-file.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libcrystfel/src/hdf5-file.c b/libcrystfel/src/hdf5-file.c
index 0c1ea92a..3a08884a 100644
--- a/libcrystfel/src/hdf5-file.c
+++ b/libcrystfel/src/hdf5-file.c
@@ -1405,8 +1405,15 @@ int hdf5_read(struct hdfile *f, struct image *image, const char *element,
}
image->data = buf;
+ if ( image->det != NULL ) {
+ ERROR("WARNING: hdf5_read() called with geometry structure.\n");
+ }
+ image->det = simple_geometry(image);
+
if ( satcorr ) debodge_saturation(f, image);
+ unpack_panels(image, image->det);
+
if ( image->beam != NULL ) {
fill_in_beam_parameters(image->beam, f, NULL, image);