Changeset 943 for sans/Dev/trunk/NCNR_User_Procedures/Analysis/Alpha/Tinker/FFT_FillMatrixShapes.ipf
- Timestamp:
- Jun 25, 2014 6:58:27 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Analysis/Alpha/Tinker/FFT_FillMatrixShapes.ipf
r942 r943 798 798 End 799 799 800 801 // takes XYZV values such as output from Ken Rubinson's converter 802 // where xyz may take negative values, and tries to put it into 803 // mat, shifting XYZ as needed 804 // 805 // now the xyz center is passed in (for a single object) that is treated as the center of that object 806 // 807 Function XYZV_FillMat_Centered(xx,yy,zz,xc,yc,zc,rad,len,val,erase) 808 Wave xx,yy,zz 809 Variable xc,yc,zc,rad,len 810 Wave val 811 Variable erase 812 813 Variable x1,x2,y1,y2,z1,z2,ii,jj,kk,num,npt,minp,maxp 814 815 WAVE mat = root:mat 816 NVAR solventSLD = root:FFT_SolventSLD 817 NVAR FFT_T=root:FFT_T 818 819 if(erase) 820 mat = solventSLD 821 endif 822 823 num=numpnts(xx) 824 825 for(ii=0;ii<num;ii+=1) 826 mat[xx[ii]][yy[ii]][zz[ii]] = val[ii] 827 endfor 828 829 return(0) 830 End 831 832 833 834 835 ///// replaced by XYZV_FillMat_Centered() after using Ken's routines, but may have some use in the future 836 // 800 837 // takes XYZV values such as output from Ken Rubinson's converter 801 838 // where xyz may take negative values, and tries to put it into
Note: See TracChangeset
for help on using the changeset viewer.