Ignore:
Timestamp:
Feb 14, 2018 2:44:22 PM (5 years ago)
Author:
srkline
Message:

major changes to how the transmission panel functions. Now the transmission file pop selects all of the related sample files (using group_id) to allow easier batch calculation of the transmission.

File:
1 edited

Legend:

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

    r1073 r1084  
    307307         
    308308End 
     309 
     310 
     311 
     312// 
     313//function will write new box coordinates to the data file 
     314// 
     315Function V_UpdateBoxCoords() :  GraphMarquee 
     316        GetMarquee left,bottom 
     317        if(V_flag == 0) 
     318                Print "There is no Marquee" 
     319        else 
     320                Variable count,x1,x2,y1,y2,ct_err 
     321                x1 = V_left 
     322                x2 = V_right 
     323                y1 = V_bottom 
     324                y2 = V_top 
     325 
     326                // NOTE: 
     327                // this function MODIFIES x and y values on return, converting them to panel coordinates 
     328                // detector panel is identified from the (left,top) coordinate (x1,y2) 
     329                String detStr = V_FindDetStrFromLoc(x1,x2,y1,y2)                 
     330//  
     331                SVAR gCurDispType = root:Packages:NIST:VSANS:Globals:gCurDispType 
     332                string boxStr 
     333                // this function will modify the x and y values (passed by reference) as needed to keep on the panel 
     334                V_KeepSelectionInBounds(x1,x2,y1,y2,detStr,gCurDispType) 
     335                sprintf boxStr,"%d;%d;%d;%d;",x1,x2,y1,y2 
     336 
     337                SVAR gCurrentFile = root:Packages:NIST:VSANS:Globals:gLastLoadedFile            //for the status of the display 
     338 
     339                V_writeBoxCoordinates(gCurrentFile,V_List2NumWave(boxStr,";","inW")) 
     340 
     341//              count = V_SumCountsInBox(x1,x2,y1,y2,ct_err,gCurDispType,detStr)                 
     342//              Print "counts = ",count 
     343//              Print "err/counts = ",ct_err/count 
     344 
     345        endif 
     346End 
Note: See TracChangeset for help on using the changeset viewer.