Ignore:
Timestamp:
Oct 4, 2019 8:56:43 AM (3 years ago)
Author:
srkline
Message:

Corrections to the NGB30mSANS attenuator tables (for 3A data only).

Corrections to the sample aperture units on VSANS (change in NICE on 5/22/19).

Additions for the super white beam mode on VSANS - still in progress.

File:
1 edited

Legend:

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

    r1203 r1219  
    19821982End 
    19831983 
     1984// 
    19841985// this returns REAL, DIFFERENT than SampleAp1 
     1986// see the note above. after the hard-coded date, the values in the header 
     1987// are values appear to be in [mm]. before that date, the values are in [cm] 
     1988// 
     1989// This function returns a value in [cm] 
     1990// 
    19851991Function V_getSampleAp2_size(fname) 
    19861992        String fname 
    19871993 
    19881994        String path = "entry:instrument:sample_aperture_2:shape:size" 
    1989         return(V_getRealValueFromHDF5(fname,path)) 
     1995         
     1996        Variable val = V_Compare_ISO_Dates("2019-05-10T13:36:54.200-04:00",V_getDataStartTime(fname)) 
     1997         
     1998        if(val == 2)            // more "current" data, mm in the header 
     1999                return(V_getRealValueFromHDF5(fname,path)/10) 
     2000        else 
     2001                // "older" data, cm in the header 
     2002                return(V_getRealValueFromHDF5(fname,path)) 
     2003        endif 
     2004 
     2005//      return(V_getRealValueFromHDF5(fname,path)) 
     2006 
    19902007End 
    19912008 
Note: See TracChangeset for help on using the changeset viewer.