Ignore:
Timestamp:
Nov 16, 2017 10:57:32 AM (5 years ago)
Author:
srkline
Message:

lots of changes here:
many little fixes to clean up TODO items and marke them DONE

changed the handling of the panel "gap" to split the gap evenly. Q-calculations have been re-verified with this change.

re-named the list of "bin Type" values, and added a few more choices. Streamlined how the averaging and plotting works with this list so that it can be more easily modified as different combinations of binning are envisioned. This resulted in a lot of excess code being cut out and replaced with cleaner logic. This change has also been verified to work as intended.

Attenuation is now always calculated from the table. The table also by (NEW) definition has values for the white beam (one waelength) and graphite (multiple possible wavelengths) where the wavelengths are artificially scaled (*1000) or *1e6) so that the interpolations can be done internally without the need for multiple attenuator tables.

File:
1 edited

Legend:

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

    r1064 r1073  
    4040//// DRAWING/SAVING 
    4141// 
    42 // TODO: 
     42// (DONE) 
    4343// x- CHANGE the mask behavior to a more logical choice - and consistent with SANS 
    4444//   x- CHANGE to: 
     
    4646// 0 == no Mask == keep data 
    4747// x- and then make the corresponding changes in the I(Q) routines 
    48  
    49  
     48// 
    5049// x- move the mask generating utilities from VC_HDF5_Utils into this procedure - to keep 
    5150// all of the mask procedures together 
     
    5655//  this is done through a window hook function (LR moves tube number, up/down = add/delete) 
    5756// 
    58 // TODO 
    59 // -- make the arrow keys Igor 6 compatible - search for specialKeyCode or Keyboard Events in the help file 
     57// (DONE) 
     58// x- (NO)- Igor 7 is necessary for some VSANS functionality, so do not support Igor 6 
     59//    x (no)make the arrow keys Igor 6 compatible - search for specialKeyCode or Keyboard Events in the help file 
    6060//     and what needs to be replaced for Igor 6 
    61 // TODO 
    62 // -- for L/R panels, the maksing of columns should be sufficient. Tubes are vertical. For the T/B panels 
     61// DONE 
     62// x- for L/R panels, the maksing of columns should be sufficient. Tubes are vertical. For the T/B panels 
    6363//         the L/R panels cast a vertical shadow (=vertical mask) AND the tubes are horizontal, so the individual 
    6464//         tubes will likely need to be masked in a horizontal line too, per tube. ADD this in... 
     
    455455// x- currently is hard-wired for the simulation path!   need to make it more generic, especially for RAW data 
    456456// 
    457 // -- need to adjust the size of the image subwindows to keep the model 
    458 //    calculation from spilling over onto the table (maybe just move the table) 
     457// -- need to adjust the size of the image subwindows  
     458// 
    459459// -- need to do something for panel "B". currently ignored 
    460 // -- currently the pixel sizes for "real" data is incorrect in the file 
    461 //     and this is why the plots are incorrectly sized 
    462 // -- error checking if the data does not exist in selected work folder 
     460// 
    463461// 
    464462// draw the selected panel and the model calculation, adjusting for the  
     
    595593// overlay the mask 
    596594// 
    597 //  
     595// (DONE) 
    598596// x- remove the old mask first 
    599597// x- make the mask "toggle" to remove it 
     
    728726// 
    729727// TODO 
    730 // -- make the number of pixels GLOBAL 
     728// -- make the number of pixels GLOBAL to pick up the right numbers for the detector dimensions 
    731729//  x- there will be lots of work to do to develop the procedures necessary to actually generate the  
    732730//      9 data sets to become the MASK file contents. More complexity here than for the simple SANS case. 
     
    843841 
    844842 
    845 // TODO 
    846 // -- currently, there are no dummy fill values or attributes for the fake MASK file 
     843// (DONE) 
     844// x- currently, there are no dummy fill values or attributes for the fake MASK file 
    847845// 
    848846Proc Setup_VSANS_MASK_Struct() 
Note: See TracChangeset for help on using the changeset viewer.