Changeset 1169
- Timestamp:
- Dec 17, 2013 9:38:23 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIimage.py
r1167 r1169 368 368 369 369 def GetTthAzmDsp(x,y,data): 370 'Needs a doc string - checked OK for ellipses dont know abouthyperbola'370 'Needs a doc string - checked OK for ellipses & hyperbola' 371 371 wave = data['wavelength'] 372 372 cent = data['center'] … … 386 386 DX = dist-Z+dxy 387 387 DY = np.sqrt(dx**2+dy**2-Z**2) 388 D = (DX**2+DY**2)/d ist**2 #for geometric correction = 1/cos(2theta)^2 if tilt=0.388 D = (DX**2+DY**2)/data['distance']**2 #for geometric correction = 1/cos(2theta)^2 if tilt=0. 389 389 tth = npatan2d(DY,DX) #depth corr not correct for tilted detector 390 390 dsp = wave/(2.*npsind(tth/2.)) -
trunk/GSASIIspc.py
r973 r1169 252 252 def MT2text(M,T): 253 253 "From space group matrix/translation operator returns text version" 254 XYZ = ('-Z ','-Y ','-X ','X-Y','ERR','Y-X',' X ',' Y ',' Z ','+X ','+Y ','+Z')254 XYZ = ('-Z','-Y','-X','X-Y','ERR','Y-X','X','Y','Z') 255 255 TRA = (' ','ERR','1/6','1/4','1/3','ERR','1/2','ERR','2/3','3/4','5/6','ERR') 256 256 Fld = '' … … 258 258 IJ = int(round(2*M[j][0]+3*M[j][1]+4*M[j][2]+4))%12 259 259 IK = int(round(T[j]*12))%12 260 if IK > 0 and IJ > 4: IJ += 3 261 Fld += TRA[IK]+XYZ[IJ] 262 if j != 2: Fld += ',' 260 if IK: 261 if IJ < 3: 262 Fld += TRA[IK]+XYZ[IJ] 263 else: 264 Fld += TRA[IK]+'+'+XYZ[IJ] 265 else: 266 Fld += XYZ[IJ] 267 if j != 2: Fld += ', ' 263 268 return Fld 264 269
Note: See TracChangeset
for help on using the changeset viewer.