Ignore:
Timestamp:
Jul 6, 2012 5:29:38 PM (10 years ago)
Author:
srkline
Message:

Added support for reading 4-column data into the 2D reader

Calculation of kappa for ABS now does a specific byte check for ensuring a "good" DIV file. hopefully this will eliminate errors where incorrect DIV files are selected and bad kappa values are generated - and the program thinks (incorrectly) that there is a valid DVI file present, when there really isn't one (and then there is no easy recovery from this)

Added CheckIfDIVData() functions to NCNR_Utils and to FACILITY_Utils, and to other (facility)_Utils

Changed the calls to writing BT5 files after adding so that it could be more easily scripted in the future.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/KIST_Utils.ipf

    r807 r857  
    267267End 
    268268 
     269//function to test a file to see if it is a DIV file 
     270// 
     271// returns truth 0/1 
     272// 
     273// called by many procedures (both external and local) 
     274// 
     275Function CheckIfDIVData(fname) 
     276        String fname 
     277         
     278 
     279//      if(your test here) 
     280//              //true, is DIV data file 
     281//              Return(1) 
     282//      else 
     283//              //some other file 
     284//              Return(0) 
     285//      Endif 
     286 
     287End 
    269288 
    270289// function returns 1 if file is a transmission file, 0 if not 
Note: See TracChangeset for help on using the changeset viewer.