Ignore:
Timestamp:
Sep 13, 2018 2:03:34 PM (5 years ago)
Author:
srkline
Message:

attempting to put the zip file of the package in some accessible location since webster has been cut off.

Location:
sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/EventModeProcessing.ipf

    r1050 r1115  
    43494349         
    43504350End 
     4351 
     4352 
     4353 
     4354Proc InsertTimeReset(period) 
     4355        Variable period 
     4356         
     4357        fInsertTimeReset(period) 
     4358End 
     4359 
     4360 
     4361// 
     4362// for event data where a time reset signal was not sent, but the data is 
     4363// actually periodic. This function will reset the time at the input period. 
     4364// This assumes that you accurately know the period, and that the start time 
     4365// of the data coincides with the start time of the period, otherwise the  
     4366// time reset will happen in the middle of the cycle. 
     4367// 
     4368// period = period of reset (s) 
     4369// 
     4370Function fInsertTimeReset(period) 
     4371        Variable period 
     4372         
     4373        SetDataFolder root:Packages:NIST:Event: 
     4374         
     4375        Wave rescaledTime = rescaledTime 
     4376        Wave timePt = timePt 
     4377        Variable rollTime,rollTicks,ii,delta 
     4378         
     4379        Variable period_ticks 
     4380         
     4381        period_ticks = period*1e7               //period in ticks 
     4382         
     4383 
     4384        for(ii=0;ii<numpnts(rescaledTime)-1;ii+=1) 
     4385                if(rescaledTime[ii] > period) 
     4386                        MultiThread timePt[ii,] -= period_ticks 
     4387                        MultiThread rescaledTime[ii,] -= period 
     4388                endif 
     4389        endfor 
     4390 
     4391// updates the longest time (as does every operation of adjusting the data) 
     4392        NVAR t_longest = root:Packages:NIST:Event:gEvent_t_longest 
     4393        t_longest = waveMax(rescaledTime) 
     4394        SetDataFolder root: 
     4395 
     4396        return(0) 
     4397End 
     4398 
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/Menu.ipf

    r1001 r1115  
    5555                "Add Current Slice",AccumulateSlices(1) 
    5656                "Display Accumulated Slices",AccumulateSlices(2)         
     57                "-" 
     58                "Insert Time Reset",InsertTimeReset() 
    5759        End 
    5860        "-" 
Note: See TracChangeset for help on using the changeset viewer.