Ignore:
Timestamp:
Feb 9, 2018 3:47:28 PM (5 years ago)
Author:
srkline
Message:

minor changes to allow patching of more incorrect metadata

added simple way to estimate beam centers from a single measurement (stiil to be thoroughly verified!)

File:
1 edited

Legend:

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

    r1072 r1083  
    44254425        String groupName = "/entry/instrument/detector_"+detStr  
    44264426        String varName = "setback" 
     4427        wTmpWrite[0] = val 
     4428 
     4429        variable err 
     4430        err = V_WriteWaveToHDF(fname, groupName, varName, wTmpWrite) 
     4431        if(err) 
     4432                Print "HDF write err = ",err 
     4433        endif 
     4434        // now be sure to kill the data folder to force a re-read of the data next time this file is read in 
     4435//      err = V_KillNamedDataFolder(fname) 
     4436//      if(err) 
     4437//              Print "DataFolder kill err = ",err 
     4438//      endif 
     4439        return(err) 
     4440End 
     4441 
     4442// gap when panels are "touching" 
     4443// units are mm 
     4444// writes panel gap for detector panel specified 
     4445// does not write anything if "B" is passed (no such field for this detector) 
     4446// 
     4447Function V_writeDet_panel_gap(fname,detStr,val) 
     4448        String fname,detStr 
     4449        Variable val 
     4450 
     4451        if(cmpstr(detStr,"B") == 0) 
     4452                return(0) 
     4453        endif 
     4454         
     4455//      String path = "entry:instrument:detector_"+detStr+":panel_gap" 
     4456 
     4457        Make/O/D/N=1 wTmpWrite 
     4458//      Make/O/R/N=1 wTmpWrite 
     4459        String groupName = "/entry/instrument/detector_"+detStr  
     4460        String varName = "panel_gap" 
    44274461        wTmpWrite[0] = val 
    44284462 
Note: See TracChangeset for help on using the changeset viewer.