Changeset 526 for trunk/GSASIIphsGUI.py
- Timestamp:
- Apr 2, 2012 2:30:28 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIphsGUI.py
r522 r526 3469 3469 try: 3470 3470 mapData = generalData['Map'] 3471 contLevel = drawingData['contourLevel']*mapData['rhoMax']3472 rho = ma.array(mapData['rho'],mask=(mapData['rho']<contLevel))3471 contLevel = mapData['cutOff']*mapData['rhoMax']/100. 3472 rho = copy.copy(mapData['rho']) #don't mess up original 3473 3473 except KeyError: 3474 3474 print '**** ERROR - Fourier map not defined' 3475 3475 return 3476 indx = np.array(ma.nonzero(rho)).T 3477 steps = 1./np.array(rho.shape) 3478 rhoXYZ = indx*steps 3479 print rhoXYZ 3476 peaks = [] 3477 while True: 3478 rhoMask = ma.array(rho,mask=(mapData['rho']<contLevel)) 3479 indx = np.array(ma.nonzero(rhoMask)).T 3480 rhoList = np.array([rho[i,j,k] for i,j,k in indx]) 3481 rhoMax = np.max(rhoList) 3482 rMI = indx[np.argmax(rhoList)] 3483 print rMI,rhoMax 3484 break 3485 # steps = 1./np.array(rho.shape) 3486 # rhoXYZ = indx*steps 3480 3487 print 'search Fourier map' 3481 3488
Note: See TracChangeset
for help on using the changeset viewer.