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/ILL_Utils.ipf

    r795 r857  
    450450End 
    451451 
     452//function to test a file to see if it is a DIV file 
     453// 
     454// returns truth 0/1 
     455// 
     456// called by many procedures (both external and local) 
     457// 
     458Function CheckIfDIVData(fname) 
     459        String fname 
     460         
     461 
     462//      if(your test here) 
     463//              //true, is DIV file data file 
     464                Return(1) 
     465//      else 
     466//              //some other file 
     467//              Return(0) 
     468//      Endif 
     469 
     470End 
    452471 
    453472// function returns 1 if file is a transmission file, 0 if not 
Note: See TracChangeset for help on using the changeset viewer.