Ignore:
Timestamp:
Feb 10, 2016 3:19:54 PM (7 years ago)
Author:
srkline
Message:

more additions to start the work file flow of converting RAW folder to a WORK folder. Raw_to_Work will be the function that sequentially applies the corrections. All corrections can be turned on/off with preferences.

File:
1 edited

Legend:

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

    r970 r979  
    10551055End 
    10561056 
    1057 //                      converging_slits (data folder) 
    1058 Function/S V_getConvSlitStatus(fname) 
    1059         String fname 
    1060  
    1061         String path = "entry:instrument:converging_slits:status" 
    1062         Variable num=60 
    1063         return(V_getStringFromHDF5(fname,path,num)) 
    1064 End 
    1065  
     1057//                      converging_slits (not used) 
    10661058 
    10671059////// INSTRUMENT/DETECTORS 
     
    11761168// TODO -- write this function to return a WAVE with the data 
    11771169// either as a wave reference, or as an input parameter 
    1178 Function V_getDetectorData(fname,detStr,outW) 
    1179         String fname,detStr 
    1180         Wave outW 
     1170Function/WAVE V_getDetectorDataW(fname,detStr) 
     1171        String fname,detStr 
    11811172 
    11821173        String path = "entry:instrument:detector_"+detStr+":data" 
    11831174        WAVE w = V_getRealWaveFromHDF5(fname,path) 
    11841175 
    1185         outW = w 
    1186         return(0) 
    1187 End 
    1188  
     1176        return w 
     1177End 
     1178 
     1179// TODO -- write this function to return a WAVE with the data 
     1180// either as a wave reference, or as an input parameter 
     1181Function/WAVE V_getDetectorDataErrW(fname,detStr) 
     1182        String fname,detStr 
     1183 
     1184        String path = "entry:instrument:detector_"+detStr+":linear_data_error" 
     1185        WAVE w = V_getRealWaveFromHDF5(fname,path) 
     1186 
     1187        return w 
     1188End 
    11891189 
    11901190// TODO -- write this function to return a WAVE with the data 
     
    11921192// ALSO -- the "B" deadtime will be a single value (probably) 
    11931193//  but the tube banks will be 1D arrays of values, one per tube 
    1194 Function V_getDetector_deadtime(fname,detStr,outW) 
    1195         String fname,detStr 
    1196         Wave outW 
     1194Function/WAVE V_getDetector_deadtime(fname,detStr) 
     1195        String fname,detStr 
    11971196 
    11981197        String path = "entry:instrument:detector_"+detStr+":dead_time" 
    11991198        WAVE w = V_getRealWaveFromHDF5(fname,path) 
    12001199 
    1201         outW = w 
    1202         return(0) 
     1200        return w 
    12031201End 
    12041202 
Note: See TracChangeset for help on using the changeset viewer.