This repository has been archived by the owner on Aug 31, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyxrftiff_scale.py
64 lines (47 loc) · 1.93 KB
/
pyxrftiff_scale.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# -*- coding: utf-8 -*-
"""
Created on Thu May 19 12:10:35 2016
@author: xf05id1
"""
from PIL import Image
import matplotlib.pylab as plt
import numpy
cell01_cathode_pistine_wd = '/nfs/xf05id1/userdata/2016_cycle1/300398_Chen-Wiegart-LiSbattery/batch_xrf_cell01_cathode/2669_output/'
cell01_cathode_discharged_wd = '/nfs/xf05id1/userdata/2016_cycle1/300398_Chen-Wiegart-LiSbattery/batch_xrf_cell01_cathode/2713_output/'
cell01_cathode_pistine = '2669_Cu_norm_scale4x4.tiff'
cell01_cathode_discharged = '2713_Cu_norm_scale4x4.tif'
#cell01_p = '2669_Cu_norm.tiff'
imf_p = cell01_cathode_pistine_wd + cell01_cathode_pistine
imf_d = cell01_cathode_discharged_wd + cell01_cathode_discharged
minscale = 1.6e13
maxscale = 0.2e13
plt.close("all")
plt.figure()
im1 = Image.open(imf_p)
#im.show()
#im = plt.imread(cell01_c_wd+cell01_p)
implot = plt.imshow(numpy.array(im1), vmin = minscale, vmax = maxscale, interpolation = 'none')
plt.colorbar()
plt.figure()
im2 = Image.open(imf_d)
implot = plt.imshow(numpy.array(im2), vmin = minscale, vmax = maxscale, interpolation = 'none')
plt.colorbar()
############
cell01_anode_pistine_wd = '/nfs/xf05id1/userdata/2016_cycle1/300398_Chen-Wiegart-LiSbattery/batch_xrf_cell01_anode/2679_output/'
cell01_anode_discharged_wd = '/nfs/xf05id1/userdata/2016_cycle1/300398_Chen-Wiegart-LiSbattery/batch_xrf_cell01_anode/2718_output/'
cell01_anode_pistine = '2679_Cu_norm_scale4x4.tif'
cell01_anode_discharged = '2718_Cu_norm_scale4x4.tif'
imf_p = cell01_anode_pistine_wd + cell01_anode_pistine
imf_d = cell01_anode_discharged_wd + cell01_anode_discharged
minscale = 0.4e12
maxscale = 7.2e12
plt.figure()
im1 = Image.open(imf_p)
#im.show()
#im = plt.imread(cell01_c_wd+cell01_p)
implot = plt.imshow(numpy.array(im1), vmin = minscale, vmax = maxscale, interpolation = 'none')
plt.colorbar()
plt.figure()
im2 = Image.open(imf_d)
implot = plt.imshow(numpy.array(im2), vmin = minscale, vmax = maxscale, interpolation = 'none')
plt.colorbar()