Ignore:
Timestamp:
Oct 31, 2017 1:09:55 PM (5 years ago)
Author:
srkline
Message:

a few changes to update the calculation of transmission values from the tables, and updating the correct units in a few places. Also updated how a transmission file is matched with a scattering file.

File:
1 edited

Legend:

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

    r1063 r1072  
    11641164//// number of attenuators actually dropped in 
    11651165//// an integer value 
    1166 //Function V_writeAtten_num_dropped(fname,val) 
    1167 //      String fname 
    1168 //      Variable val 
    1169 //       
    1170 ////    String path = "entry:instrument:attenuator:thickness"    
    1171 //       
    1172 //      Make/O/I/N=1 wTmpWrite 
    1173 ////    Make/O/R/N=1 wTmpWrite 
    1174 //      String groupName = "/entry/instrument/attenuator"        
    1175 //      String varName = "num_atten_dropped" 
    1176 //      wTmpWrite[0] = val 
    1177 // 
    1178 //      variable err 
    1179 //      err = V_WriteWaveToHDF(fname, groupName, varName, wTmpWrite) 
    1180 //      if(err) 
    1181 //              Print "HDF write err = ",err 
    1182 //      endif 
    1183 //      // now be sure to kill the data folder to force a re-read of the data next time this file is read in 
    1184 ////    err = V_KillNamedDataFolder(fname) 
    1185 ////    if(err) 
    1186 ////            Print "DataFolder kill err = ",err 
    1187 ////    endif 
    1188 //      return(err) 
    1189 //end 
     1166Function V_writeAtten_num_dropped(fname,val) 
     1167        String fname 
     1168        Variable val 
     1169         
     1170//      String path = "entry:instrument:attenuator:thickness"    
     1171         
     1172        Make/O/I/N=1 wTmpWrite 
     1173//      Make/O/R/N=1 wTmpWrite 
     1174        String groupName = "/entry/instrument/attenuator"        
     1175        String varName = "num_atten_dropped" 
     1176        wTmpWrite[0] = val 
     1177 
     1178        variable err 
     1179        err = V_WriteWaveToHDF(fname, groupName, varName, wTmpWrite) 
     1180        if(err) 
     1181                Print "HDF write err = ",err 
     1182        endif 
     1183        // now be sure to kill the data folder to force a re-read of the data next time this file is read in 
     1184//      err = V_KillNamedDataFolder(fname) 
     1185//      if(err) 
     1186//              Print "DataFolder kill err = ",err 
     1187//      endif 
     1188        return(err) 
     1189end 
    11901190 
    11911191// thickness of the attenuator (PMMA) - units?? 
Note: See TracChangeset for help on using the changeset viewer.