diff options
Diffstat (limited to 'libcrystfel/src/stream.c')
-rw-r--r-- | libcrystfel/src/stream.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c index 2b802599..7f2e341e 100644 --- a/libcrystfel/src/stream.c +++ b/libcrystfel/src/stream.c @@ -245,12 +245,6 @@ void write_chunk(FILE *ofh, struct image *i, struct hdfile *hdfile, int f) } - if ( i->i0_available ) { - fprintf(ofh, "I0 = %7.5f (arbitrary units)\n", i->i0); - } else { - fprintf(ofh, "I0 = invalid\n"); - } - fprintf(ofh, "photon_energy_eV = %f\n", J_to_eV(ph_lambda_to_en(i->lambda))); @@ -341,8 +335,6 @@ int read_chunk(FILE *fh, struct image *image) if ( find_start_of_chunk(fh) ) return 1; - image->i0_available = 0; - image->i0 = 1.0; image->lambda = -1.0; image->features = NULL; image->reflections = NULL; @@ -390,11 +382,6 @@ int read_chunk(FILE *fh, struct image *image) } } - if ( strncmp(line, "I0 = ", 5) == 0 ) { - image->i0 = atof(line+5); - image->i0_available = 1; - } - if ( sscanf(line, "astar = %f %f %f", &u, &v, &w) == 3 ) { as.u = u*1e9; as.v = v*1e9; as.w = w*1e9; have_as = 1; |