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_Correct.ipf

    r1021 r1023  
    267267//                                      was freshly loaded. added final copy of cor result to cor:data and cor:linear_data 
    268268// 
     269// TODO -- verify the operation 
     270//  -- check that all "get" reads are returning proper values (+units) 
     271// 
    269272Function V_CorrectMode_1() 
    270273 
     
    383386                cor1 *= noadd_bgd*noadd_emp             //zero out the array mismatch values 
    384387         
     388                cor_data = cor1         //the final result 
     389                 
    385390                // do the error propagation piecewise    
    386391                Duplicate/O sam_err, tmp_a, tmp_b, tmp_c, tmp_d,c_val,d_val 
     
    498503                cor1 *= noadd_bgd               //zeros out regions where arrays do not overlap, one otherwise 
    499504         
     505                cor_data = cor1         //the final result 
     506 
    500507        // do the error propagation piecewise    
    501508                Duplicate/O sam_err, tmp_a, tmp_b 
     
    610617                cor1 = fsam*sam_data/sam_AttenFactor - femp*(tsam/temp)*emp_temp/emp_AttenFactor 
    611618                cor1 *= noadd_emp               //zeros out regions where arrays do not overlap, one otherwise 
     619 
     620                cor_data = cor1         //the final result 
    612621         
    613622        // do the error propagation piecewise    
     
    808817                cor1 -= drk_temp/sam_attenFactor 
    809818                cor1 *= noadd_bgd*noadd_emp             //zero out the array mismatch values 
     819 
     820                cor_data = cor1         //the final result 
    810821                 
    811822        // do the error propagation piecewise    
     
    941952                cor1 += -1*(fbgd*bgd_temp/bgd_attenFactor - drk_temp) - drk_temp/sam_attenFactor 
    942953                cor1 *= noadd_bgd               //zeros out regions where arrays do not overlap, one otherwise 
     954 
     955                cor_data = cor1         //the final result 
    943956         
    944957        // do the error propagation piecewise    
     
    10721085                cor1 += drk_temp - drk_temp/sam_attenFactor 
    10731086                cor1 *= noadd_emp               //zeros out regions where arrays do not overlap, one otherwise 
     1087 
     1088                cor_data = cor1         //the final result 
    10741089         
    10751090        // do the error propagation piecewise    
     
    11631178                //correct sam for attenuators, and do the same to drk, since it was scaled to sam count time 
    11641179                cor1 = fsam*sam_data/sam_AttenFactor  - drk_temp/sam_attenFactor 
     1180 
     1181                cor_data = cor1         //the final result 
    11651182         
    11661183        // do the error propagation piecewise    
Note: See TracChangeset for help on using the changeset viewer.