mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-03 00:51:13 -04:00
2c17544f3f
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/WSJT/trunk@1 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
25 lines
552 B
Fortran
25 lines
552 B
Fortran
real function ftsky(l,b)
|
|
|
|
C Returns 408 MHz sky temperature for l,b (in degrees), from
|
|
C Haslam, et al. survey. Must have already read the entire
|
|
C file tsky.dat into memory.
|
|
|
|
real*4 l,b
|
|
integer*2 nsky
|
|
common/sky/ nsky(360,180)
|
|
save
|
|
|
|
j=nint(b+91.0)
|
|
if(j.gt.180) j=180
|
|
xl=l
|
|
if(xl.lt.0.0) xl=xl+360.0
|
|
i=nint(xl+1.0)
|
|
if(i.gt.360) i=i-360
|
|
ftsky=0.0
|
|
if(i.ge.1 .and. i.le.360 .and. j.ge.1 .and. j.le.180) then
|
|
ftsky=0.1*nsky(i,j)
|
|
endif
|
|
|
|
return
|
|
end
|