fix whitening bug
@@ -158,7 +158,7 @@ int main_whiten(int argc, char* argv[])
// get scale factor by whitening the noise data and taking stdev
whiten(noise_dims, nwhite, mat_dims, optmat_out, ndata);
- md_zstd(DIMS, noise_dims, READ_FLAG | COIL_FLAG, nstdev, nwhite);
+ md_zstd(DIMS, noise_dims, ~0, nstdev, nwhite);
float stdev = md_zasum(DIMS, std_dims, nstdev);
md_zsmul(DIMS, dims, odata, odata, 1. / stdev);
