This repository has been archived by the owner on Sep 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdefaultIparms.py
124 lines (110 loc) · 4.44 KB
/
defaultIparms.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#defaultIparms
########### SVN repository information ###################
# $Date: 2023-07-18 09:34:20 -0500 (Tue, 18 Jul 2023) $
# $Author: vondreele $
# $Revision: 5629 $
# $URL: https://subversion.xray.aps.anl.gov/pyGSAS/trunk/defaultIparms.py $
# $Id: defaultIparms.py 5629 2023-07-18 14:34:20Z vondreele $
########### SVN repository information ###################
'''
Defines some default instrument parameters.
Format for each is a list of strings finished with a '\n'.
Begin with '#GSAS-II...' as the reader routine checks this.
Each line can be comprised of a block of ';' delimited name:value pairs.
All instrument parameters must be included; even those = 0.
Use a GSAS-II instprm file as a source for the entries.
For a new entry:
Append a useful name to defaultIparms_lbl.
Append the list of lines to defaultIparms.
defaultIparm_lbl: defines a list of labels.
defaultIparms: defines a list of multiple strings with values for each set of defaults.
'''
#See examples below.
defaultIparm_lbl = []
defaultIparms = []
pass # placed here so that the following is not processed by Sphinx as a doc string
''' the phrase 'lab data' in the following makes the default goniometer type='Bragg-Brentano'
otherwise it is set to 'Debye-Scherrer'
'''
defaultIparm_lbl.append('CuKa lab data')
defaultIparms.append([
'#GSAS-II instrument parameter file for lab CuKa data\n',
'Type:PXC;Bank:1\n',
'Lam1:1.5405;Lam2:1.5443;Zero:0.0;Polariz.:0.7;Azimuth:0.0;I(L2)/I(L1):0.5\n',
'U:2.0;V:-2.0;W:5.0;X:0.0;Y:0.0;Z:0.0;SH/L:0.002\n',
])
defaultIparm_lbl.append('APS 30keV 11BM')
defaultIparms.append([
'#GSAS-II instrument parameter file APS 11BM @ 30keV\n',
'Type:PXC;Bank:1\n',
'Lam:0.413263;Polariz.:0.99;Azimuth:0.0;Zero:0.0\n',
'U:1.163;V:-0.126;W:0.063;X:0.0;Y:0.0;Z:0.0;SH/L:0.002\n',
])
defaultIparm_lbl.append('0.7A synchrotron data')
defaultIparms.append([
'#GSAS-II instrument parameter file 0.7A synchrotron data\n',
'Type:PXC;Bank:1\n',
'Lam:0.69968;Zero:0.0;Polariz.:0.99;Azimuth:0.0\n',
'U:5.9840407759;V:-1.28771353531;W:0.118521878603\n',
'X:-0.0977791308891;Y:4.40147397286;Z:0.0;SH/L:0.0264356231583\n',
])
defaultIparm_lbl.append('X-ray EDS data')
defaultIparms.append([
'#GSAS-II instrument parameter file energy dispersive data\n',
'Type:PXE;Bank:1\n',
'2-theta:5.000;XE:10.0;YE:0.0488;ZE:0.0\n',
'A:0.0;B:0.0005;C:.005\n',
'X:0.0;Y:0.0;Z:0.0\n',
])
defaultIparm_lbl.append('1.9A ILL D1A CW data')
defaultIparms.append([
'#GSAS-II instrument parameter file\n',
'Type:PNC;Bank:1\n',
'Lam:1.909;Zero:0.0;Polariz.:0.0;Azimuth:0.0\n',
'U:257.182710995;V:-640.525145369;W:569.378664828\n',
'X:0.0;Y:0.0;Z:0.0;SH/L:0.002\n',
])
defaultIparm_lbl.append('9m HIPD 151deg bank TOF data')
defaultIparms.append([
'#GSAS-II instrument parameter file for 9m HIPD back scattering bank\n',
'Type:PNT;Bank:1\n',
'fltPath:10.32567;2-theta:151.0;Azimuth:0.0\n',
'Zero:-0.773346536757;difC:5084.82763065;difA:-2.6304177486;difB:0.0\n',
'alpha:5.0\n',
'beta-0:0.0332763989665;beta-1:0.000964057827372;beta-q:0.0\n',
'sig-0:0.0;sig-1:15.1402867268;sig-2:0.0;sig-q:0.0\n',
'X:0.0;Y:0.0;Z:0.0\n',
])
defaultIparm_lbl.append('10m TOF 90deg bank')
defaultIparms.append([
'#GSAS-II instrument parameter file for 10m TOF 90deg bank\n',
'Type:PNT;Bank:1\n',
'fltPath:10;2-theta:90.0;Azimuth:0.0\n',
'Zero:0.0;difC:3500.;difA:0.0;difB:0.0\n',
'alpha:5.0\n',
'beta-0:0.03;beta-1:0.004;beta-q:0.0\n',
'sig-0:0.0;sig-1:80.0;sig-2:0.0;sig-q:0.0\n',
'X:0.0;Y:0.0;Z:0.0\n',
])
defaultIparm_lbl.append('63m POWGEN 90deg bank')
defaultIparms.append([
'#GSAS-II instrument parameter file for POWGEN\n',
'Type:PNT;Bank:1;fltPath:63.169;2-theta:90.0;Azimuth:0.0\n',
'Zero:-4.96558487231;difC:22594.7440533;difA:-0.927945556608;difB:1.42511277627\n',
'alpha:1.0\n',
'beta-0:0.138077840635;beta-1:0.0029606795286;beta-q:0.0\n',
'sig-0:24.8202075678;sig-1:-82.07196132;sig-2:269.925504862;sig-q:0.0\n',
'X:-1.80259010604;Y:4.47209435997;Z:0.0\n',
])
defaultIparm_lbl.append('Generic TOF')
defaultIparms.append([
'#GSAS-II instrument parameter file for Generic TOF\n',
'Type:PNT;Bank:1;fltPath:25.0;2-theta:150.;Azimuth:0.0\n',
'Zero:0.;difC:9000.;difA:0.;difB:0.\n',
'alpha:1.0\n',
'beta-0:0.;beta-1:0.005;beta-q:0.0\n',
'sig-0:0.;sig-1:-50.;sig-2:0.;sig-q:0.0\n',
'X:0.;Y:0.;Z:0.\n',
])