diff options
| author | hibby <d@vehibberd.com> | 2026-10-06 21:24:40 +0100 |
|---|---|---|
| committer | hibby <d@vehibberd.com> | 2026-10-06 21:24:40 +0100 |
| commit | c25cbdf6fb6d946175f4335fab77bfea601b56db (patch) | |
| tree | 6f7a94b7b81f999e434f61b73d47e337dfd26bf2 /lib/astro.f90 | |
| parent | 71f5689252c9f13e70e1c24856904475b2307809 (diff) | |
| parent | 0685fcada9f95fe90f70b387cd7d757da8209624 (diff) | |
Merge tag 'debian/3.2.0_rc1+dfsg-2' into debian/trixie-backportsdebian/trixie-backports
tagging wsjtx 3.2.0~rc1+dfsg-2
Diffstat (limited to 'lib/astro.f90')
| -rw-r--r-- | lib/astro.f90 | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/lib/astro.f90 b/lib/astro.f90 index ae2ad1f2..cb44433d 100644 --- a/lib/astro.f90 +++ b/lib/astro.f90 @@ -1,8 +1,10 @@ subroutine astro(nyear,month,nday,uth,freq8,Mygrid, & NStation,MoonDX,AzSun,ElSun,AzMoon0,ElMoon0, & ntsky,doppler00,doppler,dbMoon,RAMoon,DecMoon,HA,Dgrd,sd, & - poloffset,xnr,day,lon,lat,LST,techo) + poloffset,xnr,day,lon,lat,LST,techo,ephemeris_result) + use jpl_ephemeris_status, only: EPHEMERIS_INVALID_INPUT, & + EPHEMERIS_UNAVAILABLE ! Computes astronomical quantities for display and tracking. ! NB: may want to smooth the Tsky map to 10 degrees or so. @@ -10,6 +12,7 @@ subroutine astro(nyear,month,nday,uth,freq8,Mygrid, & real*8 freq8 real LST real lat,lon + integer ephemeris_result integer*2 nt144(180) ! common/echo/xdop(2),techo,AzMoon,ElMoon,mjd @@ -43,7 +46,31 @@ subroutine astro(nyear,month,nday,uth,freq8,Mygrid, & AzSun,ElSun,mjd,day) call MoonDopJPL(nyear,month,nday,uth,lon,lat,RAMoon,DecMoon, & - LST,HA,AzMoon,ElMoon,vr,techo) + LST,HA,AzMoon,ElMoon,vr,techo,ephemeris_result) + if(ephemeris_result.eq.EPHEMERIS_INVALID_INPUT .or. & + ephemeris_result.eq.EPHEMERIS_UNAVAILABLE) then + AzSun=0. + ElSun=0. + AzMoon0=0. + ElMoon0=0. + ntsky=0 + doppler00=0. + doppler=0. + dbMoon=0. + RAMoon=0. + DecMoon=0. + HA=0. + Dgrd=0. + sd=0. + poloffset=0. + xnr=0. + day=0. + lon=0. + lat=0. + LST=0. + techo=0. + return + endif RAMoon=rad*RAMoon DecMoon=rad*DecMoon dist=2.99792458d5*techo/2.d0 |
