diff options
author | Thomas White <taw@physics.org> | 2009-11-13 12:10:12 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2009-11-13 12:10:12 +0100 |
commit | ef6a971cf432321ceb057b8c355c8e6814d5aff6 (patch) | |
tree | 1d8d7373a1b7c1591cf28fcf61230122e19c1ca4 /src/main.c | |
parent | 857cc8c991a5ee4e717d01822da271ae34f5adaa (diff) |
Work in progress on photon correctness
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -75,11 +75,15 @@ int main(int argc, char *argv[]) image.y_centre = 255.5; image.camera_len = 0.2; /* 20 cm */ image.resolution = 5120; /* 512 pixels in 10 cm */ - image.lambda = 0.2e-9; /* LCLS wavelength */ + image.xray_energy = eV_to_J(2.0e3); /* 2 keV energy */ + image.lambda = ph_en_to_lambda(image.xray_energy); /* Wavelength */ image.qvecs = NULL; image.sfacs = NULL; image.data = NULL; + /* Splurge a few useful numbers */ + printf("Wavelength is %f nm\n", image.lambda/1.0e-9); + get_diffraction(&image, cell); record_image(&image); |