summaryrefslogtreecommitdiff
path: root/lib/astro0.f90
diff options
context:
space:
mode:
Diffstat (limited to 'lib/astro0.f90')
-rw-r--r--lib/astro0.f9041
1 files changed, 19 insertions, 22 deletions
diff --git a/lib/astro0.f90 b/lib/astro0.f90
index fe047d46..9eebab9d 100644
--- a/lib/astro0.f90
+++ b/lib/astro0.f90
@@ -1,37 +1,41 @@
-subroutine astro0(nyear,month,nday,uth8,nfreq,mygrid,hisgrid, &
+subroutine astro0(nyear,month,nday,uth8,freq8,mygrid,hisgrid, &
AzSun8,ElSun8,AzMoon8,ElMoon8,AzMoonB8,ElMoonB8,ntsky,ndop,ndop00, &
dbMoon8,RAMoon8,DecMoon8,HA8,Dgrd8,sd8,poloffset8,xnr8,dfdt,dfdt0, &
- width1,width2,w501,w502,xlst8,techo8)
+ width1,width2,xlst8,techo8)
parameter (DEGS=57.2957795130823d0)
character*6 mygrid,hisgrid
real*8 AzSun8,ElSun8,AzMoon8,ElMoon8,AzMoonB8,ElMoonB8
real*8 dbMoon8,RAMoon8,DecMoon8,HA8,Dgrd8,xnr8,dfdt,dfdt0,dt
- real*8 sd8,poloffset8,day8,width1,width2,w501,w502,xlst8
- real*8 uth8,techo8
+ real*8 sd8,poloffset8,width1,width2,xlst8
+ real*8 uth8,techo8,freq8
+ real*8 xl,b
+ common/librcom/xl(2),b(2)
data uth8z/0.d0/
save
uth=uth8
- call astro(nyear,month,nday,uth,nfreq,hisgrid,2,1, &
+ call astro(nyear,month,nday,uth,freq8,hisgrid,2,1, &
AzSun,ElSun,AzMoon,ElMoon,ntsky,doppler00,doppler, &
dbMoon,RAMoon,DecMoon,HA,Dgrd,sd,poloffset,xnr, &
day,xlon2,xlat2,xlst,techo)
AzMoonB8=AzMoon
ElMoonB8=ElMoon
- call astro(nyear,month,nday,uth,nfreq,mygrid,1,1, &
+ xl2=xl(1)
+ xl2a=xl(2)
+ b2=b(1)
+ b2a=b(2)
+ call astro(nyear,month,nday,uth,freq8,mygrid,1,1, &
AzSun,ElSun,AzMoon,ElMoon,ntsky,doppler00,doppler, &
dbMoon,RAMoon,DecMoon,HA,Dgrd,sd,poloffset,xnr, &
day,xlon1,xlat1,xlst,techo)
-
- day8=day
- xlst8=xlst
+ xl1=xl(1)
+ xl1a=xl(2)
+ b1=b(1)
+ b1a=b(2)
techo8=techo
- call tm2(day8,xlat1,xlon1,xl1,b1)
- call tm2(day8,xlat2,xlon2,xl2,b2)
- call tm2(day8+1.d0/1440.0,xlat1,xlon1,xl1a,b1a)
- call tm2(day8+1.d0/1440.0,xlat2,xlon2,xl2a,b2a)
- fghz=0.001*nfreq
+
+ fghz=1.d-9*freq8
dldt1=DEGS*(xl1a-xl1)
dbdt1=DEGS*(b1a-b1)
dldt2=DEGS*(xl2a-xl2)
@@ -41,14 +45,6 @@ subroutine astro0(nyear,month,nday,uth8,nfreq,mygrid,hisgrid, &
rate2=sqrt((dldt1+dldt2)**2 + (dbdt1+dbdt2)**2)
width2=0.5*6741*fghz*rate2
- fbend=0.7
- a2=0.0045*log(fghz/fbend)/log(1.05)
- if(fghz.lt.fbend) a2=0.0
- f50=0.19 * (fghz/fbend)**a2
- if(f50.gt.1.0) f50=1.0
- w501=f50*width1
- w502=f50*width2
-
AzSun8=AzSun
ElSun8=ElSun
AzMoon8=AzMoon
@@ -57,6 +53,7 @@ subroutine astro0(nyear,month,nday,uth8,nfreq,mygrid,hisgrid, &
RAMoon8=RAMoon/15.0
DecMoon8=DecMoon
HA8=HA
+ xlst8=xlst
Dgrd8=Dgrd
sd8=sd
poloffset8=poloffset