Ignore:
Timestamp:
Oct 25, 2010 2:30:27 PM (12 years ago)
Author:
srkline
Message:

Fixed bug re-introduced by using the global ASCII code for Angstrom. Now it will use a default "A" if the global does not exist, rather than throwin up an error.

For 2D MC simulation, now if the data was scaled to ABS, the 2D data is "un-scaled" back to raw counts before saving as VAX format. A few counts may be lost here and there during the conversion, but less than 0.01% in my limited testing.

File:
1 edited

Legend:

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

    r755 r757  
    11441144// currently hard-wired for SAS data folder 
    11451145// 
     1146// A later call to Write_VAXRaw_Data() will check for the simulation data, and  
     1147// convert ABS simulated data to raw counts if necessary 
     1148// 
    11461149Function SaveAsVAXButtonProc(ctrlName,[runIndex,simLabel]) 
    11471150        String ctrlName 
     
    11531156        // the easy answer is to abort, but I possibly could unscale the data and get back to integer 
    11541157        // counts. 
    1155         NVAR isRAW = root:Packages:NIST:SAS:gRawCounts 
    1156         if(! isRAW) 
    1157                 Abort "The simulation must be in RAW counts for it to be saved as RAW VAX format" 
    1158         endif 
     1158        // A later call to Write_VAXRaw_Data() will check for the simulation data, and  
     1159        // convert ABS simulated data to raw counts if necessary 
     1160//      NVAR isRAW = root:Packages:NIST:SAS:gRawCounts 
     1161//      if(!isRAW) 
     1162//              Abort "The simulation must be in RAW counts for it to be saved as RAW VAX format" 
     1163//      endif 
    11591164         
    11601165        // if default parameters were passed in, use them 
Note: See TracChangeset for help on using the changeset viewer.