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/VC_HDF5_VSANS_Utils.ipf

    r1019 r1023  
    2323//    since I need a "template" of the Nexus folder structure to start from and fill in 
    2424// 
    25 // It doesn't reproduce the NICE logs, but will leave a spece for them if 
     25// It doesn't reproduce the NICE logs, but will leave a space for them if 
    2626// it is read in and is part of the xref. 
    2727// 
     
    5050// 
    5151 
    52  
    53 // Next... think of all of R/W access needed 
    54 // 
    55 // the simple read/write works... 
    56 // linear_data does not seem to need to be transposed at all 
    57 // 
    58 //  -- this seems too easy. what am I doing wrong? Is something getting garbled when I  
    59 // write back any single values back to the file 
    60 // 
    61 // -- try a string value next 
    62 // -- then start to write the generic get/write functions 
    63 // 
    64  
    65 // 
    66 // do I ditch the RealsRead/IntegersRead/TextRead? It makes little sense now. 
    67 // maybe copy a "dataInfo" folder/subfolders. can't keep them all (bloat) 
    68 // but then what about multiple files added together? 
    69 // 
    70  
     52// 
     53 
     54// 
     55// FEB 2017: All that is functional right now is the Setup/save of DIV and MASK files, and the attribute routines. 
     56// 
     57// The DIV and MASK routines are in their respective procedure files, and call save functions for the simplified 
     58// Nexus structure (in V_HDF5_RW_Utils.ipf). 
     59// 
     60// The R/W with attributes is part of the HDF5 Gateway procedure from Pete Jemain, and needs to be kept and functional 
     61// to be able to work with attributes - if needed. 
     62// 
    7163Menu "VSANS" 
    72         SubMenu "Nexus File Testing" 
    73                 "Fill_Nexus_V_Template" 
    74                 "Save_Nexus_V_Template" 
    75                 "Load_Nexus_V_Template" 
    76                 "-" 
    77                 "IgorOnly_Setup_VSANS_Struct" 
    78                 "IgorOnly_Save_VSANS_Nexus" 
    79                 "IgorOnly_Setup_SANS_Struct" 
    80                 "IgorOnly_Save_SANS_Struct" 
     64        SubMenu "Nexus File RW" 
     65//              "Fill_Nexus_V_Template" 
     66//              "Save_Nexus_V_Template" 
     67//              "Load_Nexus_V_Template" 
     68//              "-" 
     69//              "IgorOnly_Setup_VSANS_Struct" 
     70//              "IgorOnly_Save_VSANS_Nexus" 
     71//              "IgorOnly_Setup_SANS_Struct" 
     72//              "IgorOnly_Save_SANS_Struct" 
    8173                "Setup_VSANS_DIV_Struct" 
    8274                "Save_VSANS_DIV_Nexus" 
     
    9385 
    9486 
     87 
     88 
     89 
     90 
     91 
     92 
     93 
     94 
     95 
     96 
     97 
     98 
     99///////////////////////////// 
     100 
     101 
     102 
    95103Proc Load_Nexus_V_Template() 
    96104        H_HDF5Gate_Read_Raw("") 
     
    114122 
    115123 
    116  
    117  
    118  
    119  
    120  
    121  
    122  
    123  
    124  
    125  
    126 ///////////////////////////// 
    127  
    128124/////////////below is largely depricated, ugly dance to be able to "fake" a file from Igor 
    129125// which was not complete anyways. 
     126 
    130127 
    131128 
Note: See TracChangeset for help on using the changeset viewer.