Fix nbytes out parameter in plugin_get_header

Previously reported total number of bytes in a frame - should be
the width of the array data type.
This commit is contained in:
Charles Mita
2018-08-15 15:53:47 +01:00
parent 482ab573af
commit f435908a2b
+1 -1
View File
@@ -119,7 +119,7 @@ void plugin_get_header(
*nx = ds_prop.dims[2];
*ny = ds_prop.dims[1];
*nbytes = ds_prop.dims[1] * ds_prop.dims[2] * ds_prop.data_width;
*nbytes = ds_prop.data_width;
*number_of_frames = ds_prop.dims[0];
*qx = (float) x_pixel_size;
*qy = (float) y_pixel_size;