Jump to content
ABOUT
What We Do
Supported Missions
User Working Group
Staff Directory
Forums
Ask a Question
Search Forum Archive
MISSIONS
CZCS
GLIMR
GOCI
HawkEye
HICO
MERIS
MODIS-Aqua
MODIS-Terra
OCTS
OLCI-S3A
OLCI-S3B
PACE
SeaWiFS
VIIRS-NOAA20
VIIRS-NOAA21
VIIRS-SNPP
Projects
PRISM-CORAL
CyAN
Inland Waters
HSI-HABS
Forums
Ask a Question
Search Forum Archive
DATA
Data Overview
Ocean Data Home
SeaBASS
Get Data
Direct Data Access
File Search
Field Data
OPeNDAP
How To
Search & Download
Cite Data
Browse Data
Level 1 & 2 Browser
Level 3 & 4 Browser
Trending & Analysis
Overpass Predictor
Quality Assessment
Product Validation
Global L3 Trends
Mission Quality Monitor
Forums
Ask a Question
Search Forum Archive
DOCS
Technical Docs
NASA Technical Reports
Users Guides
White Papers
MODIS Docs (historical)
Sensor Spectral Information
Data
Filenaming Convention
How to Cite
Processing History
Community Engagement
Meetings/Workshops
Outreach & Education
Products
Level 1, 2, & 3 Definitions
Format Specifications
Product Status by Mission
Algorithm Descriptions
Ancillary Sources
Forums
Ask a Question
Search Forum Archive
SOFTWARE & TOOLS
Visualization
SeaDAS
SeaDAS Documentation
SeaDAS Informational Videos
OCSSW Software
OCSSW Documentation
Online Tools
Other Resources
Forums
Ask a Question
Search Forum Archive
SERVICES
Sign Up
User Registration
Mailing Lists
Online Tools
Overpass Predictor
Subscriptions/Orders
Data Dashboard
Request a HawkEye Image
More...
HPLC Pigments
Forums
Ask a Question
Search Forum Archive
GALLERY
FORUM
☰
ocssw
V2022
gfs-oceanweb
web
ocssw
ocssw_src
oel_hdf4
libnav
angles.f
Go to the documentation of this file.
1
SUBROUTINE
angles(M,A,B,CN,SN,TN)
2
C VERSION OF 4/2/87
3
C PURPOSE
4
C COMPUTES COS(M*A), SIN(M*A), M*TAN(B) AND STORE VALUES IN
5
C ARRAYS CN, SN, TN
6
C INPUT
7
C M = ORDER OF SPHERICAL HARMONICS TO BE EVALUATED
8
C A = LONGITUDE FROM GREENWICH (RAD)
9
C B = LATITUDE (RAD)
10
C OUTPUT
11
C CN = M-D ARRAY OF COS VALUES
12
C SN = M-D ARRAY OF SIN VALUES
13
C TN = M-D ARRAY OF TAN VALUES
14
C CALLED BY SUBROUTINES
15
C DER
16
C CALL SUBROUTINES
17
C NONE
18
C REFERENCES
19
C JPL EM 312/87-153, 20 APRIL 1987
20
C ANALYSIS
21
C J. H. KWOK - JPL
22
C PROGRAMMER
23
C J. H. KWOK - JPL
24
C PROGRAM MODIFICATIONS
25
C NONE
26
C COMMENTS
27
C
28
IMPLICIT DOUBLE PRECISION
(a-h,o-z)
29
dimension cn(41),sn(41),tn(41)
30
DATA
zero,one,two/0.d0,1.d0,2.d0/
31
cn(1)=one
32
sn(1)=zero
33
tn(1)=zero
34
IF
(m.EQ.0)
RETURN
35
cn(2)=dcos(a)
36
sn(2)=dsin(a)
37
tn(2)=dtan(b)
38
IF
(m.EQ.1)
RETURN
39
DO
100 i=2,m
40
cn(i+1)=two*cn(2)*cn(i)-cn(i-1)
41
sn(i+1)=two*cn(2)*sn(i)-sn(i-1)
42
100 tn(i+1)=tn(2)+tn(i)
43
RETURN
44
END
45
Generated by
1.8.17