Ignore:
Timestamp:
May 25, 2017 1:29:50 PM (5 years ago)
Author:
srkline
Message:

Added the angle dependent transmission correction to the data correction in the raw_to_work step, in 2D

added a testing file that can generate fake event data, read, write, and decode it. Read is based on GBLoadWave. Hoepfully I'll not need to write an XOP. manipulation of the 64 bit words are done with simple bit shifts and logic.

also added are a number of error checking routines to improve behavior when wave, folders, etc. are missing.

File:
1 edited

Legend:

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

    r1031 r1041  
    538538        // (6) angle dependent transmission correction 
    539539        // TODO: 
    540         // -- this still needs to be filled in 
     540        // x- this still needs to be filled in 
    541541        // -- still some debate of when/where in the corrections that this is best applied 
    542542        //    - do it here, and it's done whether the output is 1D or 2D 
    543543        //    - do it later (where SAMPLE information is used) since this section is ONLY instrument-specific 
     544        // -- verify that the calculation is correct 
     545        // -- verify that the error propagation (in 2D) is correct 
     546        // 
    544547        NVAR gDoTrans = root:Packages:NIST:VSANS:Globals:gDoTransmissionCor 
    545548        if (gDoTrans == 1) 
    546                 Print "(stub)Doing Large-angle transmission correction -- INCOMPLETE FUNCTION "// for "+ detStr 
     549                Print "Doing Large-angle transmission correction"// for "+ detStr 
    547550                for(ii=0;ii<ItemsInList(ksDetectorListAll);ii+=1) 
    548551                        detStr = StringFromList(ii, ksDetectorListAll, ";") 
     
    550553                        Wave w_err = V_getDetectorDataErrW(fname,detStr) 
    551554                         
    552 //                      V_TransmissionCorrection(fill this in) 
     555                        V_LargeAngleTransmissionCorr(w,w_err,fname,detStr,destPath) 
    553556                         
    554557                endfor 
Note: See TracChangeset for help on using the changeset viewer.