Ignore:
Timestamp:
Mar 11, 2016 3:36:43 PM (7 years ago)
Author:
srkline
Message:

lots of changes to 1D averaging and the plotting routines, detector corrections, and basic reads

File:
1 edited

Legend:

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

    r981 r984  
    10701070// only defined for the "B" detector, and may not be necessary? 
    10711071// TODO -- write to return an ARRAY 
    1072 Function V_getDet_cal_x(fname,detStr,outW) 
    1073         String fname,detStr 
    1074         Wave outW 
     1072Function/WAVE V_getDet_cal_x(fname,detStr) 
     1073        String fname,detStr 
    10751074 
    10761075        if(cmpstr(detStr,"B") == 0) 
     
    10781077                WAVE w = V_getRealWaveFromHDF5(fname,path) 
    10791078 
    1080                 outW = w 
    1081                 return(0) 
     1079                return w 
    10821080        else 
    1083                 return(0) 
     1081                return $"" 
    10841082        endif 
    10851083End 
     
    10871085// only defined for the "B" detector, and may not be necessary? 
    10881086// TODO -- write to return an ARRAY 
    1089 Function V_getDet_cal_y(fname,detStr,outW) 
    1090         String fname,detStr 
    1091         Wave outW 
     1087Function/WAVE V_getDet_cal_y(fname,detStr) 
     1088        String fname,detStr 
    10921089 
    10931090        if(cmpstr(detStr,"B") == 0) 
     
    10951092                WAVE w = V_getRealWaveFromHDF5(fname,path) 
    10961093         
    1097                 outW = w 
    1098                 return(0) 
     1094                return w 
    10991095        else 
    1100                 return(0) 
     1096                return $"" 
    11011097        endif 
    11021098End 
     
    11731169        return(V_getRealValueFromHDF5(fname,path)) 
    11741170End 
     1171 
     1172 
     1173//TODO 
     1174// 
     1175// x and y center in mm is currently not part of the NExus definition 
     1176//  does it need to be? 
     1177// these lookups will fail if they have not been generated locally! 
     1178 
     1179Function V_getDet_beam_center_x_mm(fname,detStr) 
     1180        String fname,detStr 
     1181 
     1182        String path = "entry:instrument:detector_"+detStr+":beam_center_x_mm" 
     1183        return(V_getRealValueFromHDF5(fname,path)) 
     1184End 
     1185 
     1186//TODO 
     1187// 
     1188// x and y center in mm is currently not part of the NExus definition 
     1189//  does it need to be? 
     1190// these lookups will fail if they have not been generated locally! 
     1191 
     1192Function V_getDet_beam_center_y_mm(fname,detStr) 
     1193        String fname,detStr 
     1194 
     1195        String path = "entry:instrument:detector_"+detStr+":beam_center_y_mm" 
     1196        return(V_getRealValueFromHDF5(fname,path)) 
     1197End 
     1198 
     1199 
    11751200 
    11761201// TODO -- write this function to return a WAVE with the data 
Note: See TracChangeset for help on using the changeset viewer.