Ignore:
Timestamp:
May 19, 2017 2:13:33 PM (6 years ago)
Author:
srkline
Message:

Added procedures to increase the number of elements in a reduction protocol, to allow the trimming points to be added directly to the protocol.

The protocol can also now be written directly to the reduction block of the data file. This can serve as a record of what was used, and also for multiple reduction.

Although the protocol is not a NICE -generated block in the HDF file, there does not appear to be any issues with writing out this new wave to the data set, as long as I handle the error if I try to read it (since i't not there to begin with).

Protocol panel is now aware of this change, and the multiple reduce panel has been updated and added to the Inlcudes list.

File:
1 edited

Legend:

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

    r1039 r1040  
    63716371 
    63726372 
    6373 // TODO -- needs to be a WAVE, and of the proper size and type!!! 
     6373// TODO -- needs to be a Text WAVE, and of the proper size and type!!! 
    63746374//  -- this is a test where I write a wave to a field that does not exist... 
    6375 Function V_write_TrimWave(fname,inW) 
    6376         String fname 
    6377         Wave inW 
     6375Function V_write_ProtocolWave(fname,inTW) 
     6376        String fname 
     6377        Wave/T inTW 
    63786378         
    63796379//      String path = "entry:reduction:absolute_scaling" 
    63806380         
    6381         Duplicate/O inW wTmpWrite        
     6381        Duplicate/O inTW wTTmpWrite      
    63826382// then use redimension as needed to cast the wave to write to the specified type 
    63836383// see WaveType for the proper codes  
     
    63856385// -- May also need to check the dimension(s) before writing (don't trust the input) 
    63866386        String groupName = "/entry/reduction"    
    6387         String varName = "trim_wave" 
    6388  
    6389         variable err 
    6390         err = V_WriteWaveToHDF(fname, groupName, varName, wTmpWrite) 
     6387        String varName = "protocol" 
     6388 
     6389        variable err 
     6390        err = V_WriteWaveToHDF(fname, groupName, varName, wTTmpWrite) 
    63916391        if(err) 
    63926392                Print "HDF write err = ",err 
Note: See TracChangeset for help on using the changeset viewer.