diff options
| author | Christoph Berg <myon@debian.org> | 2026-10-09 14:12:35 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-10-09 14:12:35 +0200 |
| commit | ffc62c792c9a5196cb4ce7a353287dfe20db6524 (patch) | |
| tree | 1269efa852935b183daae4bb33a58d1b4d2ffb53 /lib/astro.f90 | |
| parent | 059831534c7e884f0a607ed86b582fd00d821731 (diff) | |
New upstream version 3.3.0~beta1+dfsgupstream/3.3.0_beta1+dfsg
Diffstat (limited to 'lib/astro.f90')
| -rw-r--r-- | lib/astro.f90 | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/astro.f90 b/lib/astro.f90 index cb44433d..62b6337f 100644 --- a/lib/astro.f90 +++ b/lib/astro.f90 @@ -1,7 +1,8 @@ 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,ephemeris_result) + poloffset,xnr,day,lon,lat,LST,techo,ephemeris_result, & + use_home_coordinates,home_latitude,home_longitude) use jpl_ephemeris_status, only: EPHEMERIS_INVALID_INPUT, & EPHEMERIS_UNAVAILABLE @@ -9,7 +10,8 @@ subroutine astro(nyear,month,nday,uth,freq8,Mygrid, & ! NB: may want to smooth the Tsky map to 10 degrees or so. character*6 MyGrid,HisGrid - real*8 freq8 + real*8 freq8,home_longitude,home_latitude + logical use_home_coordinates real LST real lat,lon integer ephemeris_result @@ -42,6 +44,10 @@ subroutine astro(nyear,month,nday,uth,freq8,Mygrid, & call grid2deg(MyGrid,elon,lat) lon=-elon + if (use_home_coordinates) then + lon=home_longitude + lat=home_latitude + endif call sun(nyear,month,nday,uth,lon,lat,RASun,DecSun,LST, & AzSun,ElSun,mjd,day) |
