From 1cd90dd7d1cf0531d5335b051dd5f0cb76c03f48 Mon Sep 17 00:00:00 2001 From: Neil Horner Date: Thu, 7 Mar 2019 14:18:44 +0000 Subject: [PATCH] Added the flip to non-tcp/ucd data --- imgprocessing/compress.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/imgprocessing/compress.py b/imgprocessing/compress.py index faf31d7..322ecb3 100644 --- a/imgprocessing/compress.py +++ b/imgprocessing/compress.py @@ -78,6 +78,9 @@ def bz2_nnrd(img_list, outfile, scan_name, update, center=None): if center.lower() == 'ucd': img_arr = np.rot90(img_arr, k=2) + else: + img_arr = np.fliplr(img_arr) + rawdata = img_arr.T.tostring(order='F') compressed = compressor.compress(rawdata)