aboutsummaryrefslogtreecommitdiff
path: root/src/im-sandbox.c
diff options
context:
space:
mode:
authorChun Hong Yoon <chun.hong.yoon@desy.de>2012-12-13 23:01:54 +0100
committerChun Hong Yoon <chun.hong.yoon@desy.de>2012-12-13 23:01:54 +0100
commit27da7fc3b8c4ae479305d5de996bf8c729fabac3 (patch)
treed93549fe17ffa318f65d6fd7be1487f7b3778f5c /src/im-sandbox.c
parent7e7044535bf08943771c611785e4e16f3be0257b (diff)
more user options for beam photon energy
Diffstat (limited to 'src/im-sandbox.c')
-rw-r--r--src/im-sandbox.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/im-sandbox.c b/src/im-sandbox.c
index 1b460d4e..706dfa7b 100644
--- a/src/im-sandbox.c
+++ b/src/im-sandbox.c
@@ -235,6 +235,11 @@ static void process_image(const struct index_args *iargs,
return;
}
+ if (beam->photon_energy == 0) { // read from existing hdf5
+ fill_in_beamParam(beam, hdfile);
+ }
+ image.lambda = ph_en_to_lambda(eV_to_J(beam->photon_energy));
+
if ( image.lambda < 0.0 ) {
if ( beam != NULL ) {
ERROR("Using nominal photon energy of %.2f eV\n",