Ignore:
Timestamp:
Jan 23, 2008 12:42:16 PM (15 years ago)
Author:
srkline
Message:

Changes made to read the physical detector pixel size X and Y from the file header, not from globals defined in _Utils.ipf. Now proper values must be input from instr.cfg, or patched after the fact.

Added utility procedures to write updated values (batch patch) directly to file headers, and a utility to read out the current values stored in the headers. These are available as Macros from the SANSBeta menu.

Made the corresponding changes in the FACILITY_... files for future use.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/SANSReduction/trunk/Put in User Procedures/SANS_Reduction_v5.00/ProtocolAsPanel.ipf

    r116 r247  
    19971997                Variable detCnt,countTime,attenTrans,monCnt,sdd,pixel 
    19981998                String detStr=tw[9] 
    1999                 pixel = DetectorPixelResolution(acctStr,detStr)         //get the pixel size from the file information 
     1999//              pixel = DetectorPixelResolution(acctStr,detStr)         //get the pixel size from the file information 
     2000                //note that reading the detector pixel size from the header ASSUMES SQUARE PIXELS! - Jan2008 
     2001                pixel = rw[10]/10                       // header value (X) is in mm, want cm here 
     2002         
    20002003                countTime = iw[1] 
    20012004                //detCnt = rw[2]                //080802 -use sum of data, not scaler from header 
Note: See TracChangeset for help on using the changeset viewer.