aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/hdf5-file.c
diff options
context:
space:
mode:
authorValerio Mariani <valerio.mariani@desy.de>2014-11-19 16:39:48 +0100
committerThomas White <taw@physics.org>2014-11-21 16:48:47 +0100
commit225f2f78c0f0606ec3b1d305ff084df950b0c6f5 (patch)
treeeac20defd3bc5b09cfe0413e793ebaf06a8e0037 /libcrystfel/src/hdf5-file.c
parent698402c50ee46bae40d0761c8fe1f3f6176e3041 (diff)
Moved fs ss rerrangement to get_detector_geometry
Diffstat (limited to 'libcrystfel/src/hdf5-file.c')
-rw-r--r--libcrystfel/src/hdf5-file.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/libcrystfel/src/hdf5-file.c b/libcrystfel/src/hdf5-file.c
index 88bd61c4..b2e355e4 100644
--- a/libcrystfel/src/hdf5-file.c
+++ b/libcrystfel/src/hdf5-file.c
@@ -1084,7 +1084,6 @@ int hdf5_read2(struct hdfile *f, struct image *image, struct event *ev,
float *buf;
int sum_p_h;
int p_w;
- int m_min_fs, curr_ss, m_max_fs;
int pi;
if ( image->det == NULL ) {
@@ -1120,9 +1119,6 @@ int hdf5_read2(struct hdfile *f, struct image *image, struct event *ev,
return 1;
}
- m_min_fs = 0;
- m_max_fs = p_w-1;
- curr_ss = 0;
for ( pi=0; pi<image->det->n_panels; pi++ ) {
@@ -1230,10 +1226,10 @@ int hdf5_read2(struct hdfile *f, struct image *image, struct event *ev,
return 1;
}
- m_offset[0] = curr_ss;
- m_offset[1] = 0;
- m_count[0] = p->orig_max_ss - p->orig_min_ss +1;
- m_count[1] = m_max_fs - m_min_fs +1;
+ m_offset[0] = p->min_ss;
+ m_offset[1] = p->min_fs;
+ m_count[0] = p->max_ss - p->min_ss +1;
+ m_count[1] = p->max_fs - p->min_fs +1;
dimsm[0] = sum_p_h;
dimsm[1] = p_w;
memspace = H5Screate_simple(2, dimsm, NULL);
@@ -1264,12 +1260,6 @@ int hdf5_read2(struct hdfile *f, struct image *image, struct event *ev,
f_offset, f_count, m_offset, m_count);
}
- p->min_fs = m_min_fs;
- p->max_fs = m_max_fs;
- p->min_ss = curr_ss;
- p->max_ss = curr_ss + p->h-1;
- curr_ss += p->h;
-
free(f_offset);
free(f_count);