aboutsummaryrefslogtreecommitdiff
path: root/src/dw-hdfsee.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2015-03-04 10:46:02 +0100
committerThomas White <taw@physics.org>2015-03-04 10:46:29 +0100
commitc79a8b893ab71c6088adaf28f24c48f7c554549e (patch)
treed462339e42a9c8527db7dbb623eaab1f09123198 /src/dw-hdfsee.c
parente2cb8560d35b3cf9729a15477e8e7a9ba4181df8 (diff)
hdfsee: Support peak lists with only fs,ss coordinates
Diffstat (limited to 'src/dw-hdfsee.c')
-rw-r--r--src/dw-hdfsee.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/dw-hdfsee.c b/src/dw-hdfsee.c
index 2f89a04e..974471f1 100644
--- a/src/dw-hdfsee.c
+++ b/src/dw-hdfsee.c
@@ -1341,6 +1341,23 @@ static void load_features_from_file(struct image *image, const char *filename)
image_add_feature(image->features, fs, ss, image, 1.0,
"peak");
+ } else if ( r == 2 ) {
+
+ p = find_orig_panel(image->det, fs, ss);
+
+ if ( p == NULL ) {
+ ERROR("Unable to find panel "
+ "(no geometry file given?)\n");
+ } else {
+
+ /* Convert coordinates to match rearranged
+ * panels in memory */
+ fs = fs - p->orig_min_fs + p->min_fs;
+ ss = ss - p->orig_min_ss + p->min_ss;
+ }
+ image_add_feature(image->features, fs, ss, image, 1.0,
+ "peak");
+
}
} while ( rval != NULL );