diff options
| author | Dave Hibberd <hibby@debian.org> | 2024-04-27 12:26:26 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2024-04-27 12:26:26 +0100 |
| commit | 93f7198f9c2864ef9630cc0cc9e46d6cc1933aa9 (patch) | |
| tree | 74e80fba0ae76af8a4f9d5d1b6c8c8de8e383480 /qmap/libqmap/recvpkt.f90 | |
| parent | ffea9660ba79a513401639a2f5d90e2fdc190fb8 (diff) | |
New upstream version 2.7.0~rc4+repackupstream/2.7.0_rc4+repack
Diffstat (limited to 'qmap/libqmap/recvpkt.f90')
| -rwxr-xr-x | qmap/libqmap/recvpkt.f90 | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/qmap/libqmap/recvpkt.f90 b/qmap/libqmap/recvpkt.f90 index 0addb2f0..fd5e888f 100755 --- a/qmap/libqmap/recvpkt.f90 +++ b/qmap/libqmap/recvpkt.f90 @@ -1,4 +1,4 @@ -subroutine recvpkt(nsam,nblock2,userx_no,k,buf4,buf8)
+subroutine recvpkt(nsam,nblock2,userx_no,k,buf4,buf8,ndb)
! Reformat timf2 data from Linrad and stuff data into r*4 array dd().
@@ -11,11 +11,12 @@ subroutine recvpkt(nsam,nblock2,userx_no,k,buf4,buf8) integer*2 jd(4),kd(2),nblock2
real*4 yd(2)
real*8 fcenter
- common/datcom/dd(2,5760000),ss(322,NFFT),savg(NFFT),fcenter,nutc, &
+ common/datcom/dd(2,5760000),ss(400,NFFT),savg(NFFT),fcenter,nutc, &
junk(NJUNK)
equivalence (kd,d4)
equivalence (jd,d8,yd)
+ gain=10.0**(0.05*ndb)
if(nblock2.eq.-9999) nblock2=-9998 !Silence a compiler warning
if(nsam.eq.-1) then
! Move data from the UDP packet buffer into array dd().
@@ -23,15 +24,15 @@ subroutine recvpkt(nsam,nblock2,userx_no,k,buf4,buf8) do i=1,174 !One RF channel, r*4 data
k=k+1
d8=buf8(i)
- dd(1,k)=yd(1)
- dd(2,k)=yd(2)
+ dd(1,k)=yd(1)*gain
+ dd(2,k)=yd(2)*gain
enddo
else if(userx_no.eq.1) then
do i=1,348 !One RF channel, i*2 data
k=k+1
d4=buf4(i)
- dd(1,k)=kd(1)
- dd(2,k)=kd(2)
+ dd(1,k)=kd(1)*gain
+ dd(2,k)=kd(2)*gain
enddo
endif
else
@@ -39,12 +40,12 @@ subroutine recvpkt(nsam,nblock2,userx_no,k,buf4,buf8) do i=1,nsam !One RF channel, r*4 data
k=k+1
d4=buf4(i)
- dd(1,k)=kd(1)
- dd(2,k)=kd(2)
+ dd(1,k)=kd(1)*gain
+ dd(2,k)=kd(2)*gain
k=k+1
- dd(1,k)=kd(1)
- dd(2,k)=kd(2)
+ dd(1,k)=kd(1)*gain
+ dd(2,k)=kd(2)*gain
enddo
endif
endif
|
