OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
earth.h
Go to the documentation of this file.
1 /*
2  *----------------------------------------------------------------------
3  * @(#) earth.h 1.0 30 Mar 93 <shc>
4  * Copyright (c) 1993, CSIRO Division of Oceanography.
5  *----------------------------------------------------------------------
6  *
7  * Definitions of some basic earth-related constants.
8  *
9  * EMK Gravitational constant (m**3 / s**2)
10  * J2-J5 First four zonal gravitational harmonics
11  * FLT Flattening
12  * FLTINV 1 / FLT
13  * EQRAD Equatorial radius (m)
14  * POLRAD Polar radius (m)
15  * AEMEAN Mean radius (m)
16  * EAROT Rotation rate in radians/sec
17  * TEARTH Minutes per revolution
18  * ECCSQ Eccentricity squared
19  * NSPD Number of seconds per (24 hour) day
20  * NMPD Number of minutes per (24 hour) day
21  */
22 
23 #ifndef __EARTH__
24 #define __EARTH__
25 
26 #define EMK (3.986004415e14)
27 #define J2 (1.0862583e-3)
28 #define J3 (-2.5338975e-6)
29 #define J4 (-1.623821e-6)
30 #define J5 (-2.2963180e-7)
31 #define FLT (3.35281317789691443e-3)
32 #define FLTINV (298.257)
33 #define EQRAD (6378136.3)
34 #define POLRAD (EQRAD * (1 - FLT))
35 #define AEMEAN ((EQRAD + POLRAD)/2)
36 #define EAROT (7.2921159e-5)
37 #define TEARTH (1436.068176e0)
38 #define ECCSQ (FLT * (2 - FLT))
39 #define NSECPD (86400)
40 #define NMINPD (1440)
41 
42 #endif /* __EARTH__ */