/[MITgcm]/MITgcm_contrib/darwin2/pkg/radtrans/radtrans_gha2000.F
ViewVC logotype

Annotation of /MITgcm_contrib/darwin2/pkg/radtrans/radtrans_gha2000.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Wed Apr 13 18:56:26 2011 UTC (14 years, 3 months ago) by jahn
Branch: MAIN
CVS Tags: ctrb_darwin2_ckpt64k_20130723, ctrb_darwin2_ckpt65j_20150225, ctrb_darwin2_ckpt63l_20120405, ctrb_darwin2_ckpt64h_20130528, ctrb_darwin2_ckpt62v_20110413, ctrb_darwin2_ckpt65_20140718, ctrb_darwin2_ckpt64m_20130820, ctrb_darwin2_ckpt64r_20131210, ctrb_darwin2_ckpt65m_20150615, ctrb_darwin2_ckpt65q_20151118, ctrb_darwin2_ckpt65o_20150914, ctrb_darwin2_ckpt64f_20130405, ctrb_darwin2_ckpt63f_20111201, ctrb_darwin2_ckpt64a_20121116, ctrb_darwin2_ckpt65p_20151023, ctrb_darwin2_ckpt64n_20130826, ctrb_darwin2_ckpt65e_20140929, ctrb_darwin2_ckpt64o_20131024, ctrb_darwin2_ckpt64v_20140411, ctrb_darwin2_ckpt64z_20140711, ctrb_darwin2_ckpt65l_20150504, ctrb_darwin2_ckpt65n_20150729, ctrb_darwin2_ckpt62y_20110526, ctrb_darwin2_ckpt64y_20140622, ctrb_darwin2_ckpt65d_20140915, ctrb_darwin2_ckpt64t_20140202, ctrb_darwin2_ckpt64i_20130622, ctrb_darwin2_ckpt62x_20110513, ctrb_darwin2_ckpt64s_20140105, ctrb_darwin2_ckpt62w_20110426, ctrb_darwin2_ckpt64x_20140524, ctrb_darwin2_ckpt63o_20120629, ctrb_darwin2_ckpt64e_20130305, ctrb_darwin2_ckpt63c_20111011, ctrb_darwin2_ckpt63i_20120124, ctrb_darwin2_ckpt65g_20141120, ctrb_darwin2_ckpt63m_20120506, ctrb_darwin2_ckpt63s_20120908, ctrb_darwin2_ckpt65k_20150402, ctrb_darwin2_ckpt63e_20111107, ctrb_darwin2_ckpt64w_20140502, ctrb_darwin2_ckpt63b_20110830, ctrb_darwin2_ckpt63j_20120217, ctrb_darwin2_ckpt63r_20120817, ctrb_darwin2_ckpt64g_20130503, ctrb_darwin2_ckpt64l_20130806, ctrb_darwin2_ckpt63g_20111220, ctrb_darwin2_ckpt65f_20141014, ctrb_darwin2_ckpt64c_20130120, ctrb_darwin2_ckpt63a_20110804, ctrb_darwin2_ckpt64u_20140308, ctrb_darwin2_ckpt64j_20130704, ctrb_darwin2_ckpt65i_20150123, ctrb_darwin2_ckpt63h_20111230, ctrb_darwin2_ckpt63p_20120707, ctrb_darwin2_ckpt65a_20140728, ctrb_darwin2_ckpt65b_20140812, ctrb_darwin2_ckpt64p_20131118, ctrb_darwin2_ckpt63d_20111107, ctrb_darwin2_ckpt63q_20120731, ctrb_darwin2_ckpt63_20110728, ctrb_darwin2_ckpt64b_20121224, ctrb_darwin2_ckpt64d_20130219, ctrb_darwin2_ckpt64_20121012, ctrb_darwin2_ckpt64q_20131118, ctrb_darwin2_baseline, ctrb_darwin2_ckpt64p_20131024, ctrb_darwin2_ckpt65r_20151221, ctrb_darwin2_ckpt63n_20120604, ctrb_darwin2_ckpt63k_20120317, ctrb_darwin2_ckpt65c_20140830, ctrb_darwin2_ckpt62z_20110622, ctrb_darwin2_ckpt65h_20141217
darwin2 initial checkin

1 jahn 1.1 C $Header$
2     C $Name$
3    
4     #include "RADTRANS_OPTIONS.h"
5    
6     CBOP
7     C !ROUTINE: RADTRANS_GHA2000
8    
9     C !INTERFACE: ======================================================
10     subroutine radtrans_gha2000 (radeg, iyr, imon, day, gha)
11    
12     C !DESCRIPTION:
13     c This subroutine computes the Greenwich hour angle in degrees for the
14     c input time. It uses the model referenced in The Astronomical Almanac
15     c for 1984, Section S (Supplement) and documented in Exact
16     c closed-form geolocation algorithm for Earth survey sensors, by
17     c F.S. Patt and W.W. Gregg, Int. Journal of Remote Sensing, 1993.
18     c It includes the correction to mean sideral time for nutation
19     c as well as precession.
20    
21     c Calling Arguments
22    
23     c Name Type I/O Description
24     c
25     c iyr I*4 I Year (four digits)
26     c day R*8 I Day (time of day as fraction)
27     c gha R*8 O Greenwich hour angle (degrees)
28    
29    
30     c Subprograms referenced:
31     c
32     c JD Computes Julian day from calendar date
33     c EPHPARMS Computes mean solar longitude and anomaly and
34     c mean lunar lontitude and ascending node
35     c NUTATE Compute nutation corrections to lontitude and
36     c obliquity
37     c
38     c
39     c Program written by: Frederick S. Patt
40     c General Sciences Corporation
41     c November 2, 1992
42     c
43     c Modification History:
44     c
45     C !USES: ===========================================================
46     IMPLICIT NONE
47     #include "RADTRANS_VARS.h"
48    
49     C !INPUT PARAMETERS: ===============================================
50     INTEGER myThid
51     _RL radeg
52     INTEGER iyr, imon, day
53    
54     C !OUTPUT PARAMETERS: ==============================================
55     _RL gha
56    
57     C !FUNCTIONS: ======================================================
58     INTEGER radtrans_jd
59     EXTERNAL radtrans_jd
60    
61     C !LOCAL VARIABLES: ================================================
62     integer iday,jday,nt
63     _RL fday, t, gmst, xls, gs, xlm, omega
64    
65     data nutime /-99999/
66     CEOP
67    
68     c Compute days since J2000
69     iday = int(day)
70     fday = day - iday
71     jday = radtrans_jd(iyr,imon,iday)
72     t = jday - 2451545.5D0 + fday
73     c Compute Greenwich Mean Sidereal Time (degrees)
74     gmst = 100.4606184D0 + 0.9856473663D0*t + 2.908D-13*t*t
75    
76     c Check if need to compute nutation correction for this day
77     nt = int(t)
78     if (nt.ne.nutime) then
79     nutime = nt
80     call radtrans_ephparms (t, xls, gs, xlm, omega)
81     call radtrans_nutate (radeg, t, xls, gs, xlm, omega, dpsi, eps)
82     end if
83    
84     c Include apparent time correction and time-of-day
85     gha = gmst + dpsi*cos(eps/radeg) + fday*360.0D0
86     gha = mod(gha,360.0)
87     if (gha.lt.0.0D0) gha = gha + 360.0D0
88    
89     return
90     end
91    

  ViewVC Help
Powered by ViewVC 1.1.22