Jun 2, 2017 11:29:54 AM (5 years ago)

moved dead time correction to before the solid angle correction, so that the dead time would be correcting counts, not counts per solid angle

added a routine to kill all of the waves and folders possible, if the overall DF kill failed. This is to prevent stray folders and waves from being present if different data files are loaded - since different data blocks are present for say, 3He data, data with temperature logging, etc.
This kill routine is used every time, before raw data is loaded, DIV or MASK loaded, or data is converted to WORK.

changed the "Save I(q)" button on the data display panel to save as ITX format, since the data has not been processed, and data can more easily be used for trimming input.

picking protocols in dialogs now excludes/includes appropriate waves

menus are consolidated

Fixed bug in SANS macros where the DRK[] item in the protocol could be null, and force the read of a DRK file, even if it was not desired.

1 edited


  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_HDF5_RW_Utils.ipf

    r1040 r1042  
    6161        Variable ii 
     63        destPath = "root:Packages:NIST:VSANS:"+folder 
     64        // before reading in new data, clean out what old data can be cleaned. hopefully new data will overwrite what is in use 
     65        V_KillWavesFullTree($destPath,folder,0,"",1)                    // this will traverse the whole tree, trying to kill what it can 
     67        if(DataFolderExists("root:Packages:NIST:VSANS:"+folder) == 0)           //if it was just killed? 
     68                NewDataFolder/O $("root:Packages:NIST:VSANS:"+folder) 
     69        endif 
    6370        SetDataFolder $("root:Packages:NIST:VSANS:"+folder) 
    64         destPath = "root:Packages:NIST:VSANS:"+folder 
    6672        Variable err= V_LoadHDF5_NoAtt(file,folder)     // reads into current folder 
Note: See TracChangeset for help on using the changeset viewer.