Ignore:
Timestamp:
Feb 17, 2017 1:55:05 PM (6 years ago)
Author:
srkline
Message:

many additions.

Moved unused igor/nexus testing files to Vx_ prefix since they're garbage. Pulled out the useful bits for mask and div R/W and moved those to theire appropriate procedures.

Testing the simple correction of data, only tested basic subtraction. All of it still needs to be verified since I don't have any real header numbers and units yet.

Adjusted the columns on the file catalog to be more appropriate, and added a hook to allow loading of raw data files directly from the table and a popup contextual menu. May add more functionality to it later.

Corrected how the 1D data is plotted so that it correctly uses the binning type. I(q) save now also uses the binning as specified.

File:
1 edited

Legend:

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

    r1022 r1023  
    164164 
    165165         
    166         // lookup waves for log and linear display of images 
     166        // set the lookup waves for log/lin display of the detector images 
     167        V_MakeImageLookupTables(10000,0,1) 
     168 
     169 
     170 
     171        //set flag if Demo Version is detected 
     172        Variable/G root:Packages:NIST:VSANS:Globals:isDemoVersion = V_isDemo() 
     173         
     174        //set XML globals 
     175//      String/G root:Packages:NIST:gXMLLoader_Title = "" 
     176         
     177        Return(0) 
     178End 
     179 
     180// 
     181//num = number of points (10000 seeems to be a good number so far) 
     182// lo = lower value (between 0 and 1) 
     183// hi = upper value (between 0 and 1) 
     184// 
     185// note that it is currenty NOT OK for lo > hi (!= reversed color scale, right now log(negative) == bad) 
     186// 
     187// TODO hi, lo not used properly here, seems to mangle log display now that I'm switching the lo,hi of the ctab 
     188// 
     189Function V_MakeImageLookupTables(num,lo,hi) 
     190        Variable num,lo,hi 
     191 
     192                // lookup waves for log and linear display of images 
    167193        // this is used for the main data display. With this, I can use the original 
    168194        // detector data (no copy) and the zeros in the data set are tolerated when displaying 
    169195        // on log scale 
    170196        SetDataFolder root:Packages:NIST:VSANS:Globals 
    171         Variable num,val,offset 
    172         num=10000 
    173         offset = 1/num 
     197        Variable val,offset 
     198         
     199        offset = 1/num          //can't use 1/lo if lo == 0 
    174200         
    175201        Make/O/D/N=(num) logLookupWave,linearLookupWave 
     202         
    176203        linearLookupWave = (p+1)/num 
     204         
    177205         
    178206        logLookupWave = log(linearLookupWave) 
     
    183211         
    184212        SetDataFolder root: 
    185  
    186  
    187         //set flag if Demo Version is detected 
    188         Variable/G root:Packages:NIST:VSANS:Globals:isDemoVersion = V_isDemo() 
    189          
    190         //set XML globals 
    191 //      String/G root:Packages:NIST:gXMLLoader_Title = "" 
    192          
    193         Return(0) 
    194 End 
    195  
     213         
     214        return(0) 
     215end 
    196216 
    197217// 
Note: See TracChangeset for help on using the changeset viewer.