From 925610d93bbbdf590a58c5bb9fdae2af5a8fd30f Mon Sep 17 00:00:00 2001 From: Alexandra Tolstikova Date: Wed, 22 Nov 2017 17:46:15 +0100 Subject: indexamajig: read pink beam spectrum from file --- libcrystfel/src/image.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libcrystfel') diff --git a/libcrystfel/src/image.h b/libcrystfel/src/image.h index 357a550a..1cd9f35a 100644 --- a/libcrystfel/src/image.h +++ b/libcrystfel/src/image.h @@ -123,6 +123,15 @@ enum imagefile_type /* An opaque type representing a list of image features */ typedef struct _imagefeaturelist ImageFeatureList; + +struct spectrum +{ + int n; + double *ks; /* 1/m */ + double *weights; +}; + + /* Structure describing a wavelength sample from a spectrum */ struct sample { @@ -213,6 +222,9 @@ struct image { int serial; /* Monotonically ascending serial * number for this image */ + struct spectrum *spectrum; /* Beam spectrum for pink beam data */ + + // These only used in pattern_sim, to be changed to struct spectrum from above later... struct sample *spectrum0; int nsamples; /* Number of wavelengths */ int spectrum_size; /* Size of "spectrum" */ -- cgit v1.2.3