| 
									
										
										
										
											2021-09-14 14:09:54 -04:00
										 |  |  | subroutine makepings(pings,nTRperiod,npts,width,sig)
 | 
					
						
							| 
									
										
										
										
											2016-01-21 17:53:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |   real pings(npts)
 | 
					
						
							|  |  |  |   real*8 t
 | 
					
						
							| 
									
										
										
										
											2021-09-14 14:09:54 -04:00
										 |  |  |   real t0(29)
 | 
					
						
							| 
									
										
										
										
											2016-01-21 17:53:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |   dt=1.0/12000.0
 | 
					
						
							| 
									
										
										
										
											2021-09-14 14:09:54 -04:00
										 |  |  |   do i=1,nTRperiod-1
 | 
					
						
							| 
									
										
										
										
											2016-09-25 20:37:30 +00:00
										 |  |  |      t0(i)=i                            !Make pings at t=1, 2, ... 14 s.
 | 
					
						
							| 
									
										
										
										
											2016-01-21 17:53:34 +00:00
										 |  |  |   enddo
 | 
					
						
							|  |  |  |   amp=sig
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   do i=1,npts
 | 
					
						
							| 
									
										
										
										
											2021-09-14 14:09:54 -04:00
										 |  |  |      iping=min(max(1,i/12000),nTRperiod-1)
 | 
					
						
							| 
									
										
										
										
											2017-06-06 18:57:17 +00:00
										 |  |  |      t=(i*dt-t0(iping))/width
 | 
					
						
							| 
									
										
										
										
											2021-09-14 14:09:54 -04:00
										 |  |  |      if(t.lt.0.d0 .or. t.gt.10.0) then
 | 
					
						
							| 
									
										
										
										
											2016-01-21 17:53:34 +00:00
										 |  |  |         fac=0.
 | 
					
						
							|  |  |  |      else
 | 
					
						
							|  |  |  |         fac=2.718*t*dexp(-t)
 | 
					
						
							|  |  |  |      endif
 | 
					
						
							|  |  |  |      pings(i)=fac*amp
 | 
					
						
							|  |  |  |   enddo
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   return
 | 
					
						
							|  |  |  | end subroutine makepings
 |