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

    r795 r857  
    396396End 
    397397 
     398 
     399//function to test a file to see if it is a DIV file 
     400// 
     401// returns truth 0/1 
     402// 
     403// called by many procedures (both external and local) 
     404// 
     405Function CheckIfDIVData(fname) 
     406        String fname 
     407         
     408 
     409//      if(your test here) 
     410//              //true, is DIV data file 
     411                Return(1) 
     412//      else 
     413//              //some other file 
     414//              Return(0) 
     415//      Endif 
     416 
     417End 
     418 
    398419Function isScatFile(fname) 
    399420        String fname 
Note: See TracChangeset for help on using the changeset viewer.