summaryrefslogtreecommitdiff
path: root/lib/grayline.f90
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2025-01-09 22:12:06 +0100
committerChristoph Berg <myon@debian.org>2025-01-09 22:12:06 +0100
commit992d4b4b8d3f3a630a2cf00d593ee4ce4dfa7ce8 (patch)
treefbfdfe6bcb0a8a114be2480dac53d88c977e4869 /lib/grayline.f90
parent4320ce238aae1fe87fc9f379cdd816e9317885fa (diff)
New upstream version 2.7.0~rc8+repackupstream/2.7.0_rc8+repack
Diffstat (limited to 'lib/grayline.f90')
-rwxr-xr-xlib/grayline.f9064
1 files changed, 32 insertions, 32 deletions
diff --git a/lib/grayline.f90 b/lib/grayline.f90
index 9aa72be1..cc1aeeea 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
+