source: trunk/defaultIparms.py @ 1508

Last change on this file since 1508 was 1508, checked in by vondreele, 8 years ago

finish defining new defaultIparms.py & processing in ReadPowderIparm?

File size: 3.5 KB
Line 
1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3#defaultIparms
4########### SVN repository information ###################
5# $Date: 2014-09-26 10:52:52 -0500 (Fri, 26 Sep 2014) $
6# $Author: vondreele $
7# $Revision: 1507 $
8# $URL: https://subversion.xray.aps.anl.gov/pyGSAS/trunk/defaultIparms.py $
9# $Id: GSASII.py 1507 2014-09-26 15:52:52Z vondreele $
10########### SVN repository information ###################
11'''
12Define some default instrument parameters:
13Format for each is a list of strings finished with a '\n'.
14Begin with '#GSAS-II...' as the reader routine checks this.
15Each line can be comprised of a block of ';' delimited name:value pairs.
16All instrument parameters must be included; even those = 0.
17Use a GSAS-II instprm file as a source for the entries.
18For a new entry:
19    Append a useful name to defaultIparms_lbl.
20    Append the list of lines to defaultIparms.
21See examples below.
22'''
23
24defaultIparm_lbl = []
25defaultIparms = []
26
27defaultIparm_lbl.append('CuKa lab data')
28defaultIparms.append([
29    '#GSAS-II instrument parameter file for lab CuKa data\n',
30    'Type:PXC\n',
31    'Lam1:1.5405;Lam2:1.5443;Zero:0.0;Polariz.:0.7;Azimuth:0.0;I(L2)/I(L1):0.5\n',
32    'U:2.0;V:-2.0;W:5.0;X:0.0;Y:0.0;SH/L:0.002\n',
33])
34
35defaultIparm_lbl.append('APS 30keV 11BM')
36defaultIparms.append([
37    '#GSAS-II instrument parameter file APS 11BM @ 30keV\n', 
38    'Type:PXC\n',
39    'Lam:0.413263;Polariz.:0.99;Azimuth:0.0;Zero:0.0\n',
40    'U:1.163;V:-0.126;W:0.063;X:0.0;Y:0.0;SH/L:0.002\n',
41])
42
43defaultIparm_lbl.append('0.7A synchrotron data')
44defaultIparms.append([
45    '#GSAS-II instrument parameter file 0.7A synchrotron data\n',
46    'Type:PXC\n',
47    'Lam:0.69968;Zero:0.0;Polariz.:0.99;Azimuth:0.0\n',
48    'U:5.9840407759;V:-1.28771353531;W:0.118521878603\n',
49    'X:-0.0977791308891;Y:4.40147397286;SH/L:0.0264356231583\n',
50])
51
52defaultIparm_lbl.append('1.9A ILL D1A CW data')
53defaultIparms.append([
54    '#GSAS-II instrument parameter file\n',
55    'Type:PNC\n',
56    'Lam:1.909;Zero:0.0;Polariz.:0.0;Azimuth:0.0\n',
57    'U:257.182710995;V:-640.525145369;W:569.378664828\n',
58    'X:0.0;Y:0.0;SH/L:0.002\n',
59])
60
61defaultIparm_lbl.append('9m HIPD 151deg bank TOF data')
62defaultIparms.append([
63    '#GSAS-II instrument parameter file for 9m HIPD back scattering bank\n',
64    'Type:PNT\n',
65    'fltPath:10.32567;2-theta:151.0;Azimuth:0.0\n',
66    'Zero:-0.773346536757;difC:5084.82763065;difA:-2.6304177486;difB:0.0\n',
67    'alpha:5.0\n',
68    'beta-0:0.0332763989665;beta-1:0.000964057827372;beta-q:0.0\n',
69    'sig-0:0.0;sig-1:15.1402867268;sig-2:0.0;sig-q:0.0\n',
70    'X:0.0;Y:0.0\n',
71])
72
73defaultIparm_lbl.append('10m TOF 90deg bank')
74defaultIparms.append([
75    '#GSAS-II instrument parameter file for 10m TOF 90deg bank\n',
76    'Type:PNT\n',
77    'fltPath:10;2-theta:90.0;Azimuth:0.0\n',
78    'Zero:0.0;difC:3500.;difA:0.0;difB:0.0\n',
79    'alpha:5.0\n',
80    'beta-0:0.03;beta-1:0.004;beta-q:0.0\n',
81    'sig-0:0.0;sig-1:80.0;sig-2:0.0;sig-q:0.0\n',
82    'X:0.0;Y:0.0\n',
83])
84
85defaultIparm_lbl.append('63m POWGEN 90deg bank')
86defaultIparms.append([
87    '#GSAS-II instrument parameter file for POWGEN\n',
88    'Type:PNT;fltPath:63.169;2-theta:90.0;Azimuth:0.0\n',
89    'Zero:-4.96558487231;difC:22594.7440533;difA:-0.927945556608;difB:1.42511277627\n',
90    'alpha:1.0\n',
91    'beta-0:0.138077840635;beta-1:0.0029606795286;beta-q:0.0\n',
92    'sig-0:24.8202075678;sig-1:-82.07196132;sig-2:269.925504862;sig-q:0.0\n',
93    'X:-1.80259010604;Y:4.47209435997\n',
94])
Note: See TracBrowser for help on using the repository browser.