Ignore:
Timestamp:
May 25, 2017 1:29:50 PM (6 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_BeamCenter.ipf

    r1034 r1041  
    1111// -- add method to be able to write the values to the local folder / or better, to file on disk 
    1212// -- graphically show the beam center / radius of where it is in relation to the panel 
     13// 
     14// x- error checking, if data is selected from a folder that does not exist (like VCALC). Otherwise 
     15//    the user is caught in a long loop of open file dialogs looking for something... 
    1316// 
    1417// -- move everything into it's own folder, rather than root: 
     
    186189        folder = S_Value 
    187190 
     191// error checking -- if the VCALC folder is the target & does not exist, exit now 
     192        if( cmpstr(folder,"VCALC") == 0 && DataFolderExists("root:Packages:NIST:VSANS:VCALC") == 0) 
     193                return(0) 
     194        endif 
     195 
     196// error checking -- if the RAW folder is the target & does not exist, exit now 
     197        if( cmpstr(folder,"RAW") == 0 && DataFolderExists("root:Packages:NIST:VSANS:RAW:entry") == 0) 
     198                return(0) 
     199        endif 
     200 
     201// error checking -- if the SAM folder is the target & does not exist, exit now 
     202        if( cmpstr(folder,"SAM") == 0 && DataFolderExists("root:Packages:NIST:VSANS:SAM:entry") == 0) 
     203                return(0) 
     204        endif 
     205                 
    188206        // TODO -- fix all of this mess 
    189207        if(cmpstr(folder,"VCALC") == 0) 
Note: See TracChangeset for help on using the changeset viewer.