diff options
author | Thomas White <taw@physics.org> | 2011-10-13 14:16:14 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:39 +0100 |
commit | 42d10caabdb9fa5f1fb3dcb8223236458ed003af (patch) | |
tree | 03dd4e6fadfc3717e5b5092debeb62db64347399 /src/stream.c | |
parent | d8a4f7509d0b5937bc56441e77e9343c84a3b38b (diff) |
indexamajig: Add --copy-hdf5-field option for copying something to the HDF5 file
Diffstat (limited to 'src/stream.c')
-rw-r--r-- | src/stream.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stream.c b/src/stream.c index af92fc14..a7cdc2d9 100644 --- a/src/stream.c +++ b/src/stream.c @@ -196,7 +196,7 @@ static void write_peaks(struct image *image, FILE *ofh) } -void write_chunk(FILE *ofh, struct image *i, int f) +void write_chunk(FILE *ofh, struct image *i, struct hdfile *hdfile, int f) { double asx, asy, asz; double bsx, bsy, bsz; @@ -252,6 +252,8 @@ void write_chunk(FILE *ofh, struct image *i, int f) } + copy_hdf5_fields(hdfile, i->copyme, ofh); + if ( (f & STREAM_PEAKS) || ((f & STREAM_PEAKS_IF_INDEXED) && (i->indexed_cell != NULL)) || ((f & STREAM_PEAKS_IF_NOT_INDEXED) && (i->indexed_cell == NULL)) ) |