Ignore:
Timestamp:
Mar 17, 2016 5:00:30 PM (7 years ago)
Author:
srkline
Message:

lots of changes to how VCALC simulations can be written to Nexus files to effectively make test data with different callues before the virtual machine is ready. many changes for visualization to effectively handle zeros in log scaled images

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_Initialize.ipf

    r980 r987  
    159159 
    160160         
     161        // lookup waves for log and linear display of images 
     162        SetDataFolder root:Packages:NIST:VSANS:Globals 
     163        Variable num,val,offset 
     164        num=10000 
     165        offset = 1/num 
     166         
     167        Make/O/D/N=(num) logLookupWave,linearLookupWave 
     168        linearLookupWave = (p+1)/num 
     169         
     170        logLookupWave = log(linearLookupWave) 
     171        val = logLookupWave[0] 
     172        logLookupWave += -val + offset 
     173        val = logLookupWave[num-1] 
     174        logLookupWave /= val 
     175         
     176        SetDataFolder root: 
    161177 
    162178 
Note: See TracChangeset for help on using the changeset viewer.