Ignore:
Timestamp:
Apr 6, 2018 3:02:01 PM (5 years ago)
Author:
srkline
Message:

corrected issues with transmission calculation where the popup menu of sample files was limited in number. this limitation has been removed.

fixed the re-calculation of transmission when the same value is to be patched to multiple sample files with the same group ID. now the transmission is calculated once, for the first file in the popup and the values are simply written to the remaining files.

when the box for the open beam is defined, the panel where it is located is written to the file in a new field under /reduction. it is later recalled in the transmission panel.

Defined a "Reference" beam center position for each carriage as the RIGHT panel center. then all other panel centers (L, T, B) can be derived from this value. if the beam center is measured on the Left panel, it is converted to "right" coordinates before reporting.

File:
1 edited

Legend:

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

    r1092 r1094  
    70447044        return(err) 
    70457045end 
     7046 
     7047// THIS IS A NON-NICE ENTERED FIELD 
     7048// -- this is the panel string where the box coordinates refer to (for the open beam and transmission) 
     7049Function V_writeReduction_BoxPanel(fname,str) 
     7050        String fname,str 
     7051 
     7052//      String path = "entry:reduction:comments"         
     7053 
     7054        Make/O/T/N=1 tmpTW 
     7055        String groupName = "/entry/reduction" 
     7056        String varName = "box_panel" 
     7057        tmpTW[0] = str // 
     7058 
     7059        variable err 
     7060        err = V_WriteTextWaveToHDF(fname, groupName, varName, tmpTW) 
     7061        if(err) 
     7062                Print "HDF write err = ",err 
     7063        endif 
     7064         
     7065        // now be sure to kill the data folder to force a re-read of the data next time this file is read in 
     7066//      err = V_KillNamedDataFolder(fname) 
     7067//      if(err) 
     7068//              Print "DataFolder kill err = ",err 
     7069//      endif 
     7070                 
     7071        return(err) 
     7072End 
    70467073 
    70477074//box counts 
Note: See TracChangeset for help on using the changeset viewer.