Toggle navigation
ABOUT
What We Do
Our Team
Missions
Projects
Contact Us
More About Ocean Color
DATA
Get Started
Find Data
Use Data
Contribute Data
Data Services
RESOURCES
Tutorials
Data Access Help
Search and Download Methods
File Search Help
Level 1 & 2 Browser Help
Level 3 & 4 Browser Help
SeaBASS Help
SeaDAS Help
Quality Assessment
Product Validation
Global L3 Trends
Mission Quality Monitor
Code Repositories
SeaDAS GitHub
Documentation
Technical Documents
Algorithm Descriptions (ATBDs)
Ancillary Data
Processing History
Science Software (OCSSW)
Spectral Characterization by Sensor
More Resources
TOOLS
SeaBASS (In situ Archive)
SeaDAS (Analysis/Processing Software)
Help
SeaBASS FAQs
SeaDAS Help Topics
More Tools
COMMUNITY
Meetings
Join a Mailing List
Quarterly Newsletter
More Community Links
GALLERY
FORUM
Quick Links
Direct Data Access
File Search
OpenDAP
Level 1 & 2 Browser
Level 3 & 4 Browser
CyAN Data Browser
PRISM-CORAL Browser
Mission Quality Monitor
Create an AppKey
Data Dashboard
Ocean Color Science Software
Jump to content
ocssw
V2022
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
α
θ
λ
σ
τ
ϕ
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
α
θ
λ
σ
τ
ϕ
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
Enumerator
a
b
c
d
f
g
i
l
p
r
s
t
u
v
Related Functions
d
l
o
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
web
ocssw
ocssw_src
src
geogen_modis
GEO_basic.h
Go to the documentation of this file.
1
/* file: GEO_basic.h */
2
3
/*
4
!C-INC************************************************************************
5
!Description: the basic .h file for the Level-1A geolocation
6
software
7
8
!Input Parameters: N/A
9
10
!Output Parameters: N/A
11
12
!Revision History:
13
$Log: GEO_basic.h,v $
14
Revision 5.1 2005/03/16 21:34:52 kuyper
15
Changed header guard macro name to avoid reserved name space.
16
17
Revision 2.3 1999/03/12 17:48:37 kuyper
18
Capitalized Prolog Sections
19
20
* Revision 2.2 1999/01/22 16:58:05 kuyper
21
* Added definition of WARNING.
22
*
23
* Revision 2.1 1997/10/21 18:15:47 kuyper
24
* Returned from ClearCase
25
*
26
* Revision 1.7.1.1 1997/07/18 22:40:58 kuyper
27
* Merged in out-of-sequence changes.
28
*
29
* Revision 1.7 1997/07/18 21:58:00 kuyper
30
* Baselined Version 1
31
*
32
*Parallel development:
33
* Revision 1.6 1997/05/12 18:18:56 kuyper
34
* Changed definition of TRUE for compatibility
35
* with n32 and 64 bit versions of Toolkit.
36
*
37
* Revision 1.6 1997/03/26 19:08:41 fhliang
38
* Initial revision of SDST delivery of GEO_basic.h.
39
*
40
Revision 1.5 1996/10/16 22:09:34 kuyper
41
Modified definition of FAIL to be compatible with hdf.h.
42
43
Revision 1.4 1996/08/06 15:43:24 kuyper
44
Changed to more conventional definitions of TRUE/FALSE; only external effect
45
is the value of correct_terrain in parameters file.
46
47
Revision 1.3 1996/07/30 19:09:45 kuyper
48
Added definition of EXIT_FAIL, to comply with standards.
49
50
51
4/5/95
52
Ruiming Chen (rchen@ltpmail.gsfc.nasa.gov)
53
Finished coding
54
55
!Team-unique Header:
56
This software is developed by the MODIS Science Data Support
57
Team for the National Aeronautics and Space Administration,
58
Goddard Space Flight Center, under contract NAS5-32373.
59
60
!END**************************************************************************
61
*/
62
63
#ifndef GEO_BASIC_H
64
#define GEO_BASIC_H
65
66
#include <stdio.h>
67
#include <stdlib.h>
68
#include <math.h>
69
#include <string.h>
70
71
#define EXIT_FAIL 1
/* Per MODIS software standard 5.1.1 . */
72
#define EXIT_SUCCESS 0
73
74
#define FAIL (-1)
75
#define SUCCESS 0
76
#define WARNING 1
77
78
#ifndef FALSE
79
#define FALSE 0
80
#endif
81
#ifndef TRUE
82
#define TRUE (!FALSE)
83
#endif
84
85
#endif
86
87