Ignore:
Timestamp:
Feb 19, 2016 4:37:30 PM (7 years ago)
Author:
srkline
Message:

more changes, filling in functionality of the initial data correction

File:
1 edited

Legend:

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

    r979 r981  
    997997end 
    998998 
     999// transmission value (error) for the attenuator in the beam 
     1000// use this, but if something wrong, the tables are present 
     1001Function V_writeAttenuator_trans_err(fname,val) 
     1002        String fname 
     1003        Variable val 
     1004         
     1005//      String path = "entry:instrument:attenuator:attenuator_transmission_error"        
     1006         
     1007        Make/O/D/N=1 wTmpWrite 
     1008//      Make/O/R/N=1 wTmpWrite 
     1009        String groupName = "/entry/instrument/attenuator"        
     1010        String varName = "attenuator_transmission_error" 
     1011        wTmpWrite[0] = val 
     1012 
     1013        variable err 
     1014        err = V_WriteWaveToHDF(fname, groupName, varName, wTmpWrite) 
     1015        if(err) 
     1016                Print "HDF write err = ",err 
     1017        endif 
     1018        // now be sure to kill the data folder to force a re-read of the data next time this file is read in 
     1019        err = V_KillNamedDataFolder(fname) 
     1020        if(err) 
     1021                Print "DataFolder kill err = ",err 
     1022        endif 
     1023        return(err) 
     1024end 
     1025 
    9991026 
    10001027// distance from the attenuator to the sample (units??) 
     
    33913418End 
    33923419 
     3420Function V_writeDet_VerticalOffset(fname,detStr,val) 
     3421        String fname,detStr 
     3422        Variable val 
     3423 
     3424//      String path = "entry:instrument:detector_"+detStr+":vertical_offset" 
     3425         
     3426        Make/O/D/N=1 wTmpWrite 
     3427//      Make/O/R/N=1 wTmpWrite 
     3428        String groupName = "/entry/instrument/detector_"+detStr  
     3429        String varName = "vertical_offset" 
     3430        wTmpWrite[0] = val 
     3431 
     3432        variable err 
     3433        err = V_WriteWaveToHDF(fname, groupName, varName, wTmpWrite) 
     3434        if(err) 
     3435                Print "HDF write err = ",err 
     3436        endif 
     3437        // now be sure to kill the data folder to force a re-read of the data next time this file is read in 
     3438        err = V_KillNamedDataFolder(fname) 
     3439        if(err) 
     3440                Print "DataFolder kill err = ",err 
     3441        endif 
     3442        return(err) 
     3443End 
     3444 
    33933445// only defined for the "B" detector, and only to satisfy NXsas 
    33943446Function V_writeDet_polar_angle(fname,detStr,val) 
Note: See TracChangeset for help on using the changeset viewer.