diff options
| author | Christoph Berg <myon@debian.org> | 2025-09-16 12:37:12 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2025-09-16 12:57:29 +0200 |
| commit | 5a4967c577ad245a2117b7b2f71c13b1212fe285 (patch) | |
| tree | 4d09343cfe757239895a0dd9b399242d2a07d7c2 /lib/grayline.f90 | |
| parent | 23c903a09fb1d73fd20b50323cd80cfb3aba8799 (diff) | |
Merge 2.7 changes, I had uploaded -1 from the wrong branch.debian/3.0.0_rc1+repack-2
Diffstat (limited to 'lib/grayline.f90')
| -rwxr-xr-x | lib/grayline.f90 | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/lib/grayline.f90 b/lib/grayline.f90 index cc1aeeea..9aa72be1 100755 --- a/lib/grayline.f90 +++ b/lib/grayline.f90 @@ -1,32 +1,32 @@ -subroutine grayline(nyear,month,nday,uth,mygrid,nduration,isun) - - character*6 mygrid - real LST - real lat,lon - - call grid2deg(MyGrid,elon,lat) - lon=-elon - - uth0=uth-0.5*nduration/60.0 - uth1=uth+0.5*nduration/60.0 - - call sun(nyear,month,nday,uth0,lon,lat,RASun,DecSun,LST, & - AzSun,ElSun0,mjd,day) - call sun(nyear,month,nday,uth1,lon,lat,RASun,DecSun,LST, & - AzSun,ElSun1,mjd,day) - - elchk=-0.8333 - isun=-1 - if(elsun0.lt.elchk .and. elsun1.ge.elchk) then - isun=0 - else if(elsun0.gt.elchk .and. elsun1.le.elchk) then - isun=2 - else if(elsun1.gt.elchk) then - isun=1 - else - isun=3 - endif - - return -end subroutine grayline - +subroutine grayline(nyear,month,nday,uth,mygrid,nduration,isun)
+
+ character*6 mygrid
+ real LST
+ real lat,lon
+
+ call grid2deg(MyGrid,elon,lat)
+ lon=-elon
+
+ uth0=uth-0.5*nduration/60.0
+ uth1=uth+0.5*nduration/60.0
+
+ call sun(nyear,month,nday,uth0,lon,lat,RASun,DecSun,LST, &
+ AzSun,ElSun0,mjd,day)
+ call sun(nyear,month,nday,uth1,lon,lat,RASun,DecSun,LST, &
+ AzSun,ElSun1,mjd,day)
+
+ elchk=-0.8333
+ isun=-1
+ if(elsun0.lt.elchk .and. elsun1.ge.elchk) then
+ isun=0
+ else if(elsun0.gt.elchk .and. elsun1.le.elchk) then
+ isun=2
+ else if(elsun1.gt.elchk) then
+ isun=1
+ else
+ isun=3
+ endif
+
+ return
+end subroutine grayline
+
|
