File: test_tile_order.py

package info (click to toggle)
python-agilent 0.4.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 988 kB
  • sloc: python: 849; makefile: 4
file content (18 lines) | stat: -rw-r--r-- 442 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import numpy as np

from agilent_format import agilentImage, agilentMosaic

filename = "/data/users/Kelly/557-S2_1hrTFP_PT/557-S2_1hrTFP_PT.dms"
MAT = False

am = agilentMosaic(filename, MAT=MAT)
print(am.data.shape)
img = am.data.sum(axis=2)
print(img.shape)
if MAT:
    imgplot = plt.imshow(img, origin='upper')
else:
    imgplot = plt.imshow(img, origin='lower')
plt.show()