aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/image.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-03-11 17:06:59 +0100
committerThomas White <taw@physics.org>2021-03-11 17:06:59 +0100
commite21cc1f84a8cb2b0627e99383c882e59efda4920 (patch)
tree7d8c56a259b8b4b9e030f22e26871e3cbe1942b5 /libcrystfel/src/image.c
parent0722b797e25ba3bf95d5eec56198460be0eb6aa8 (diff)
indexamajig: Use static wavelength from DataTemplate as estimate
If the geometry file contains a literal wavelength, then let's use it. That's better than nagging the user for a --wavelength-estimate.
Diffstat (limited to 'libcrystfel/src/image.c')
-rw-r--r--libcrystfel/src/image.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/libcrystfel/src/image.c b/libcrystfel/src/image.c
index 767689f8..db47f75d 100644
--- a/libcrystfel/src/image.c
+++ b/libcrystfel/src/image.c
@@ -400,34 +400,6 @@ static double im_get_length(struct image *image, const char *from,
}
-static double convert_to_m(double val, int units)
-{
- switch ( units ) {
-
- case WAVELENGTH_M :
- return val;
-
- case WAVELENGTH_A :
- return val * 1e-10;
-
- case WAVELENGTH_PHOTON_EV :
- return ph_eV_to_lambda(val);
-
- case WAVELENGTH_PHOTON_KEV :
- return ph_eV_to_lambda(val*1e3);
-
- case WAVELENGTH_ELECTRON_V :
- return el_V_to_lambda(val);
-
- case WAVELENGTH_ELECTRON_KV :
- return el_V_to_lambda(val*1e3);
-
- }
-
- return NAN;
-}
-
-
int create_detgeom(struct image *image, const DataTemplate *dtempl)
{
struct detgeom *detgeom;