diff options
author | Thomas White <taw@physics.org> | 2010-01-19 10:28:33 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2010-01-19 10:28:33 +0100 |
commit | 51239b603154405cf5002f38cba2d6452c3facd0 (patch) | |
tree | adc4f16f63cea36bb43ec5fb82bb3a8f4cca49a3 /src/hdf5-file.c | |
parent | 2fb452e37525d9d75b78d8bd47e2e2116f6c3e12 (diff) |
New convention for storage of wavelength data
Diffstat (limited to 'src/hdf5-file.c')
-rw-r--r-- | src/hdf5-file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hdf5-file.c b/src/hdf5-file.c index 32215c99..3e390f41 100644 --- a/src/hdf5-file.c +++ b/src/hdf5-file.c @@ -263,15 +263,15 @@ static double get_wavelength(struct hdfile *f) hid_t dh; double lambda; - dh = H5Dopen(f->fh, "/LCLS/wavelength", H5P_DEFAULT); + dh = H5Dopen(f->fh, "/LCLS/photon_wavelength_nm", H5P_DEFAULT); if ( dh < 0 ) return -1.0; r = H5Dread(dh, H5T_NATIVE_DOUBLE, H5S_ALL, H5S_ALL, H5P_DEFAULT, &lambda); if ( r < 0 ) return -1.0; - /* Convert Angstroms -> m */ - return lambda / 1.0e10; + /* Convert nm -> m */ + return lambda / 1.0e9; } |