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

    r206 r247  
    2424        Variable/G root:myGlobals:gNPixelsY=128 
    2525         
     26        // as of Jan2008, detector pixel sizes are read directly from the file header, so they MUST 
     27        // be set correctly in instr.cfg 
    2628        Variable/G root:myGlobals:PixelResNG3_ILL = 1.0         //pixel resolution in cm 
    2729        Variable/G root:myGlobals:PixelResNG5_ILL = 1.0 
     
    160162// detStr is passed as TextRead[9] 
    161163// 
    162 Function DetectorPixelResolution(fileStr,detStr) 
     164// *** as of Jan 2008, depricated. Now detector pixel sizes are read from the file header 
     165// rw[10] = x size (mm); rw[13] = y size (mm) 
     166// 
     167Function xDetectorPixelResolution(fileStr,detStr) 
    163168        String fileStr,detStr 
    164169         
Note: See TracChangeset for help on using the changeset viewer.