Ignore:
Timestamp:
Jul 2, 2013 2:38:09 PM (10 years ago)
Author:
srkline
Message:

Changes to the panel sizes to accommodate smaller screens on laptops. Resized some panels and reorganized some of the controls. Help files have been updated to reflect these changes.

Added function to rename raw data files by copying file on disk, then writing in the new file number to the header. Solves the ICE problem of duplicated run numbers. In NCNR_DataReadWrite. See RenumberRunNumber?

Added new functions to the EventModeProcessing? to split large files (stream mode) and decimate when they are read back in. Added features to the event editing to automatically detect steps, and to show the differential with the data. Panel has improved layout. Still in the beta phase with these new features.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/EventModeProcessing.ipf

    r915 r916  
    27622762        fSplitBigFile(splitSize, baseStr) 
    27632763         
     2764        ShowSplitFileTable() 
    27642765End 
    27652766 
     
    28632864End 
    28642865 
     2866// allows the list of loaded files to be edited 
     2867Function ShowSplitFileTable() 
     2868 
     2869        SVAR str = root:Packages:NIST:Event:gSplitFileList 
     2870         
     2871        Make/O/T/N=1 root:Packages:NIST:Event:SplitFileWave 
     2872        WAVE tw = root:Packages:NIST:Event:SplitFileWave 
     2873         
     2874        List2TextWave(str,tw) 
     2875        Edit tw 
     2876 
     2877        return(0) 
     2878End 
    28652879 
    28662880 
     
    31353149End 
    31363150 
    3137 // functions that take file names as arguments so that the loading an be done in batch mode 
    3138 // for the mode of "one continuous exposure" 
     3151// loads a list of files, decimating each chunk as it is read in 
    31393152// 
    31403153Function Stream_LoadDecim(ctrlName) 
     
    31523165 
    31533166 
     3167// if "stream" mode is not checked - abort 
     3168        NVAR gEventModeRadioVal= root:Packages:NIST:gEvent_mode 
     3169        if(gEventModeRadioVal != MODE_STREAM) 
     3170                Abort "The mode must be 'Stream' to use this function" 
     3171                return(0) 
     3172        endif 
     3173 
     3174// if the list has been edited, turn it into a list 
     3175        WAVE/T/Z tw = root:Packages:NIST:Event:SplitFileWave 
     3176        if(WaveExists(tw)) 
     3177                listStr = TextWave2SemiList(tw) 
     3178        endif 
     3179         
     3180         
    31543181 
    31553182        //loop through everything in the list 
     
    31803207                t_longest = waveMax(rescaledTime)               //should be the last point 
    31813208                 
    3182 // (2) do the decimation, just on timePt. Ignore rescaledTime for now    
     3209// (2) do the decimation, just on timePt. create rescaledTime from the decimated timePt  
    31833210                 
    31843211                Duplicate/O timePt, timePt_dTmp 
Note: See TracChangeset for help on using the changeset viewer.