OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
hmf8.f
Go to the documentation of this file.
1 C
2 C@***s* PROJECT_PFSST/l2gen_both/hmf8.f
3 C
4 C This header contains documentation required by the NOAA Climate Data Record
5 C Program (CDRP), which is managed at the NOAA National Climatic Data Center (NCDC).
6 C Only the code that applies to AVHRR SST data is documented in this header.
7 C
8 C The AVHRR Pathfinder Sea Surface Temperature (PFSST) processing code was originally
9 C developed at the University of Miami. In 2010, the code was integrated into
10 C the multi-sensor SeaWiFS Data Analysis System (SeaDAS) obtained from NASA GSFC.
11 C SeaDAS was used for processing the PFSST beginning with the Pathfinder Version
12 C 5.2 (PFV5.2) dataset, produced jointly by the University of Miami and the NOAA
13 C National Oceanographic Data Center (NODC). These data are provided to the
14 C public and archived at NODC, and have been transitioned along with the production
15 C code and documentation to the CDRP at NCDC.
16 C
17 C This NOAA required header is specifically written for Pathfinder SST and may
18 C not be relevant to other sensors or products processed by SeaDAS. Please
19 C review the SEADAS software distribution policy for public domain software
20 C located at http://seadas.gsfc.nasa.gov/copying.html for more information and
21 C documentation
22 C
23 C NAME
24 C hmf8.f
25 C
26 C LOCATION
27 C $OCSSWROOT
28 C
29 C PURPOSE
30 C Calculate the normalized aerosol radiance (lacking tau_a).
31 C
32 C DESCRIPTION
33 C The subroutine hmf8 is the algorithm for a non-absorbing standard marine
34 C aerosol with 80% humidity.
35 C NOTE: All angles must be in radians.
36 C
37 C NOAA PFSST-SEADAS BUILD VERSION
38 C Pathfinder SST V5.2 code built with SEADAS version 6.3 64 bit l2gen_both for
39 C CDR processed at University of Miami/RSMAS.
40 C
41 C PRIMARY SEADAS CODE DOCUMENTATION NASA
42 C For complete documentation of multi sensor SEADAS code see
43 C http://seadas.gsfc.nasa.gov/doc/l2gen/l2gen.html
44 C
45 C AUTHOR
46 C
47 C
48 C PFSST project embedded code
49 C Susan Walsh
50 C University of Miami/RSMAS
51 C
52 C CREATION DATE
53 C 2010
54 C
55 C COPYRIGHT
56 C THIS SOFTWARE AND ITS DOCUMENTATION ARE CONSIDERED TO BE IN THE PUBLIC DOMAIN AND
57 C THUS ARE AVAILABLE FOR UNRESTRICTED PUBLIC USE. THEY ARE FURNISHED "AS IS." THE
58 C AUTHORS, THE UNITED STATES GOVERNMENT, ITS INSTRUMENTALITIES, OFFICERS, EMPLOYEES,
59 C AND AGENTS MAKE NO WARRANTY, EXPRESS OR IMPLIED, AS TO THE USEFULNESS OF THE
60 C SOFTWARE AND DOCUMENTATION FOR ANY PURPOSE. THEY ASSUME NO RESPONSIBILITY (1) FOR
61 C THE USE OF THE SOFTWARE AND DOCUMENTATION; OR (2) TO PROVIDE TECHNICAL SUPPORT
62 C TO USERS.
63 C
64 C MODIFICATION HISTORY
65 C
66 C See CVS revision control history embedded in actual file.
67 C
68 C
69 C INPUTS
70 C X1(real) - Satellite zenith angle
71 C X2(real) - Sun zenith angle
72 C X3(real) - Delta azimuth
73 C x4(real) - Optical thickness (unused)
74 C X5(real) - Solar constant
75 C
76 C
77 C OUTPUTS
78 C X6(real) - Normalized aerosol radiance (lacking tau_a)
79 C
80 C
81 C LANGUAGE
82 C Fortran
83 C
84 C@*****
85 C
86 C !F90
87 C
88 C
89 C subroutine HMF8 (X1,X2,X3,X4,X5,X6)
90 C !Description:
91 C The subroutine hmf8 is the algorithm for a non-absorbing standard marine
92 C aerosol with 80% humidity.
93 C NOTE: All angles must be in radians.
94 C !Input Parameters:
95 C X1(real) - Satellite zenith angle
96 C X2(real) - Sun zenith angle
97 C X3(real) - Delta azimuth
98 C x4(real) - Optical thickness (unused)
99 C X5(real) - Solar constant
100 C !Output Parameters:
101 C X6(real) - Normalized aerosol radiance (lacking tau_a)
102 C
103 C !Revision History:
104 C
105 C $Id: hmf8.f,v 1.3 2012/05/07 20:10:13 sue Exp $
106 C
107 C $Log: hmf8.f,v $
108 C Revision 1.3 2012/05/07 20:10:13 sue
109 C Add or modify the PFSST headers.
110 C
111 C Revision 1.2 2012/04/26 18:55:32 sue
112 C Changes made by seadas group for seadas6.3, newer fortran, and/or 64 bit mode.
113 C
114 C Revision 1.1 2010/08/07 18:44:36 sue
115 C seadas 6.1 l2gen with modis dust and avhrr.
116 C
117 C Revision 1.1 2008/08/15 20:30:27 sue
118 C NODC versions of the pathfinder processing programs.
119 C
120 C Revision 1.1 2008/01/22 20:17:49 sue
121 C Initial version of pathnlch which reads the aci hdf data and geolocation files
122 C and creates hdf files. This version was made just to test the aci hdf files.
123 C
124 C Revision 1.4 2002/08/23 17:42:09 sue
125 C Update copyright notices to year 2002.
126 C
127 C Revision 1.3 1999/03/26 16:02:04 sue
128 C Change copyright date to 1999.
129 C
130 C Revision 1.2 1996/09/06 13:32:58 kay
131 C update prologs
132 C
133 C Revision 1.1 1996/09/05 12:48:01 sue
134 C New library which contains all of the routines and include files which
135 C are common to both modcol and modsst (except the routines which have
136 C to do with binning which are in binshr).
137 C
138 C Revision 1.5 1996/05/08 15:44:39 kay
139 C update prolog, add bang
140 C
141 C Revision 1.4 1996/03/11 14:20:10 kay
142 C update prologs
143 C
144 C Revision 1.3 1995/12/04 14:31:56 kay
145 C dd prolog
146 C
147 C Revision 1.2 1992/11/09 20:17:22 sue
148 C Make all constants double or single where appropriate, and use functions
149 C to specifically convert types.
150 C
151 C Revision 1.1 1992/02/26 19:47:11 angel
152 C Initial revision
153 C
154 
155 C !Team-Unique Header:
156 C
157 C Copyright 1988-2002 by Rosenstiel School of Marine and Atmospheric Science,
158 C University of Miami, Miami, Florida.
159 C
160 C All Rights Reserved
161 C
162 C Permission to use, copy, modify, and distribute this software and its
163 C documentation for non-commercial purposes and without fee is hereby granted,
164 C provided that the above copyright notice appear in all copies and that both
165 C that copyright notice and this permission notice appear in supporting
166 C documentation, and that the names of University of Miami and/or RSMAS not be
167 C used in advertising or publicity pertaining to distribution of the software
168 C without specific, written prior permission.
169 C
170 C UNIVERSITY OF MIAMI DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
171 C INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT
172 C SHALL UNIVERSITY OF MIAMI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
173 C DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
174 C WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
175 C OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
176 C
177 C !References and credits:
178 C Written by:
179 C University of Miami
180 C Rosensteil School for Marine and Atmospheric Science
181 C Division of Meteorology and physical Oceanography
182 C 4600 Rickenbacker Cswy
183 C Miami,Fl
184 C 33149
185 C Contact: SWalsh@rsmas.miami.edu
186 C
187 C !Design Notes:
188 C
189 C !END####################################################################
190 
191  subroutine hmf8 (X1,X2,X3,X4,X5,X6)
192 C
193 C HMF8: Standard marine aerosol, 80% humidity, non-absorbing.
194 C
195 C X1 Satellite zenith angle
196 C X2 Sun zenith angle
197 C X3 Delta azimuth
198 C X4 Optical thickness (unused)
199 C X5 Solar constant
200 C X6 Normalized aerosol radiance (lacking tau_a)
201 C
202 C ALL ANGLES MUST BE IN RADIANS
203 C
204  real PI
205  parameter(pi = 3.14159265358979)
206 
207  real X1, X2, X3, X4, X5, X6
208  real*8 alpha
209  real*8 g1
210  real*8 g2
211 
212  real*8 pa, ctheta
213  real*8 f, g
214  real*8 a, b
215  real R1, R2
216 
217  data alpha / 0.983d0/
218  data g1 / 0.82d0 /
219  data g2 /-0.55d0 /
220 
221 C ASF's
222 
223  f(ctheta,g) = (1d0-g*g)/(1d0+g*g-2d0*g*ctheta)**1.5d0
224  pa(ctheta) = alpha*f(ctheta,g1)+(1d0-alpha)*f(ctheta,g2)
225 
226 C Start of code
227 
228 C Outgoing reflectivity
229  call reflec(x1,r1)
230 C Incoming reflectivity
231  call reflec(x2,r2)
232 
233 C cos(theta-)
234  a = dble(-cos(x1)*cos(x2)+sin(x1)*sin(x2)*cos(x3))
235 C cos(theta+)
236  b = dble(+cos(x1)*cos(x2)+sin(x1)*sin(x2)*cos(x3))
237 
238  x6 = x5/(4*pi*cos(x1)) * (sngl(pa(a)) + (r1+r2)*sngl(pa(b)))
239  return
240  end
#define real
Definition: DbAlgOcean.cpp:26
subroutine reflec(X1, X3)
Definition: getglint.f:175
README for MOD_PR03(V6.1.0) 2. POINTS OF CONTACT it can be either SDP Toolkit or MODIS Packet for Terra input files The orbit validation configuration parameter(LUN 600281) must be either "TRUE" or "FALSE". It needs to be "FALSE" when running in Near Real Time mode
#define f
Definition: l1_czcs_hdf.c:702
subroutine hmf8(X1, X2, X3, X4, X5, X6)
Definition: hmf8.f:192