Ignore:
Timestamp:
Feb 8, 2019 1:33:12 PM (4 years ago)
Author:
srkline
Message:

changes to read in new USANS Raw data structure, based on the file creation date.

Some additional changes to sector averaging and viewing the "avg" masks on the detector panels. still not quite complete.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/USANS/BT5_Loader.ipf

    r1122 r1124  
    8787 
    8888// test by date 
    89 //      Variable thisFileSecs,switchSecs 
    90 //      switchSecs = date2secs(2019,2,6) 
    91 //      thisFileSecs = BT5Date2Secs(filedt)             // could use BT5DateTime2Secs() to include HR:MIN 
    92 //      if(thisFileSecs >= switchSecs) 
    93 //              useNewDataFormat = 1 
    94 //      else 
    95 //              useNewDataFormat = 0 
    96 //      endif 
     89        Variable thisFileSecs 
     90        NVAR switchSecs = root:Packages:NIST:USANS:Globals:MainPanel:gFileSwitchSecs 
     91        thisFileSecs = BT5DateTime2Secs(filedt)         // could use BT5Date2Secs() to exclude HR:MIN 
     92        if(thisFileSecs >= switchSecs) 
     93                useNewDataFormat = 1 
     94        else 
     95                useNewDataFormat = 0 
     96        endif 
    9797 
    9898// or use the global 
    99         NVAR gVal = root:Packages:NIST:gUseNICEDataFormat        
    100         useNewDataFormat = gVal 
     99//      NVAR gVal = root:Packages:NIST:gUseNICEDataFormat        
     100//      useNewDataFormat = gVal 
    101101         
    102102         
Note: See TracChangeset for help on using the changeset viewer.