Ignore:
Timestamp:
Apr 27, 2016 4:16:09 PM (7 years ago)
Author:
srkline
Message:

more changes, lots of files.

File:
1 edited

Legend:

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

    r993 r994  
    39333933End 
    39343934 
     3935 
     3936// TODO - be sure that this is defined correctly 
     3937// -- it needs to exist in the data file, and only for TB detector panels 
     3938Function V_writeDet_TBSetback(fname,detStr,val) 
     3939        String fname,detStr 
     3940        Variable val 
     3941 
     3942//      String path = "entry:instrument:detector_"+detStr+":setback" 
     3943         
     3944        if(cmpstr(detStr,"B") == 0) 
     3945                return(0) 
     3946        endif 
     3947        if(cmpstr(detStr,"FR") == 0 || cmpstr(detStr,"FL") == 0) 
     3948                return(0) 
     3949        endif 
     3950        if(cmpstr(detStr,"MR") == 0 || cmpstr(detStr,"ML") == 0) 
     3951                return(0) 
     3952        endif    
     3953         
     3954        Make/O/D/N=1 wTmpWrite 
     3955//      Make/O/R/N=1 wTmpWrite 
     3956        String groupName = "/entry/instrument/detector_"+detStr  
     3957        String varName = "setback" 
     3958        wTmpWrite[0] = val 
     3959 
     3960        variable err 
     3961        err = V_WriteWaveToHDF(fname, groupName, varName, wTmpWrite) 
     3962        if(err) 
     3963                Print "HDF write err = ",err 
     3964        endif 
     3965        // now be sure to kill the data folder to force a re-read of the data next time this file is read in 
     3966//      err = V_KillNamedDataFolder(fname) 
     3967//      if(err) 
     3968//              Print "DataFolder kill err = ",err 
     3969//      endif 
     3970        return(err) 
     3971End 
     3972 
     3973 
     3974         
     3975 
    39353976//Function V_writeDet_VerticalOffset(fname,detStr,val) 
    39363977//      String fname,detStr 
Note: See TracChangeset for help on using the changeset viewer.