Ignore:
Timestamp:
Feb 1, 2019 3:47:27 PM (4 years ago)
Author:
srkline
Message:

bug fix in the QxQy? export function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_Write_VSANS_QIS.ipf

    r1119 r1120  
    518518        //      qval = CalcQval(p+1,q+1,rw[16],rw[17],rw[18],rw[26],rw[13]/10) 
    519519                Duplicate/O qTot,phi,r_dist 
    520                 Variable pixSizeX,pixSizeY 
     520                Variable pixSizeX,pixSizeY,xctr,yctr 
    521521                pixSizeX = V_getDet_x_pixel_size(type,detStr) 
    522522                pixSizeY = V_getDet_y_pixel_size(type,detStr) 
    523523 
    524                 phi = V_FindPhi( pixSizeX*((p+1)-bCentX) , pixSizeY*((q+1)-bCentY)+(2)*yg_d)            //(dx,dy+yg_d) 
    525                 r_dist = sqrt(  (pixSizeX*((p+1)-bCentX))^2 +  (pixSizeY*((q+1)-bCentY)+(2)*yg_d)^2 )           //radial distance from ctr to pt 
     524                xctr = V_getDet_beam_center_x_pix(type,detStr) 
     525                yctr = V_getDet_beam_center_y_pix(type,detStr) 
     526                phi = V_FindPhi( pixSizeX*((p+1)-xctr) , pixSizeY*((q+1)-yctr)+(2)*yg_d)                //(dx,dy+yg_d) 
     527                r_dist = sqrt(  (pixSizeX*((p+1)-xctr))^2 +  (pixSizeY*((q+1)-yctr)+(2)*yg_d)^2 )               //radial distance from ctr to pt 
    526528         
    527529                //make everything in 1D now 
     
    591593                KillWaves/Z qx_val_s,qy_val_s,z_val_s,qz_val_s,SigmaQx_s,SigmaQy_s,fSubS_s,sw,sw_s 
    592594                 
    593                 Killwaves/Z qx_val,qy_val,z_val,qval,qz_val,sigmaQx,SigmaQy,fSubS 
     595                Killwaves/Z qval,sigmaQx,SigmaQy,fSubS,phi,r_dist 
    594596                 
    595597                Print "QxQy_Export File written: ", V_GetFileNameFromPathNoSemi(detSavePath) 
Note: See TracChangeset for help on using the changeset viewer.