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_Read.ipf

    r979 r981  
    465465end 
    466466 
     467// transmission value (error) for the attenuator in the beam 
     468// use this, but if something wrong, the tables are present 
     469Function V_getAttenuator_trans_err(fname) 
     470        String fname 
     471         
     472        String path = "entry:instrument:attenuator:attenuator_transmission_error"        
     473        return(V_getRealValueFromHDF5(fname,path)) 
     474end 
    467475 
    468476// distance from the attenuator to the sample (units??) 
     
    12511259End 
    12521260 
     1261Function V_getDet_VerticalOffset(fname,detStr) 
     1262        String fname,detStr 
     1263 
     1264        String path = "entry:instrument:detector_"+detStr+":vertical_offset" 
     1265        return(V_getRealValueFromHDF5(fname,path)) 
     1266End 
     1267 
     1268 
    12531269// only defined for the "B" detector, and only to satisfy NXsas 
    12541270Function V_getDet_polar_angle(fname,detStr) 
     
    13401356// TODO -- write this function to return a WAVE with the data 
    13411357// either as a wave reference, or as an input parameter 
    1342 Function V_getDetTube_spatialCalib(fname,detStr,outW) 
    1343         String fname,detStr 
    1344         Wave outW 
     1358Function/WAVE V_getDetTube_spatialCalib(fname,detStr) 
     1359        String fname,detStr 
    13451360 
    13461361        String path = "entry:instrument:detector_"+detStr+":spatial_calibration" 
    13471362        if(cmpstr(detStr,"B") == 0) 
    1348                 return(0) 
     1363                return $("")    // return should be null 
    13491364        else 
    13501365                WAVE w = V_getRealWaveFromHDF5(fname,path) 
    1351          
    1352                 outW = w 
    1353                 return(0) 
     1366                return w 
    13541367        endif 
    13551368End 
Note: See TracChangeset for help on using the changeset viewer.