diff options
Diffstat (limited to 'libcrystfel/src/image.c')
-rw-r--r-- | libcrystfel/src/image.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libcrystfel/src/image.c b/libcrystfel/src/image.c index d2fb30ba..c8d0f329 100644 --- a/libcrystfel/src/image.c +++ b/libcrystfel/src/image.c @@ -916,3 +916,16 @@ void mark_resolution_range_as_bad(struct image *image, } } + + +int image_write(const struct image *image, + const DataTemplate *dtempl, + const char *filename) +{ + if ( is_hdf5_file(filename) ) { + return image_hdf5_write(image, dtempl, filename); + } + + ERROR("Can only write to HDF5 files.\n"); + return 1; +} |