A sphere with three ocean waves in differing shades of blue. Next to the sphere, there is the bolded text "Ocean Color". Under that, there are two acronyms, separated by a vertical pipe: OB.DAAC (Ocean Biology Distributed Active Archive Center) and OBPG (Ocean Biology Processing Group).
Lorem
ipsum
dolor
sit
amet
Toggle navigation
Ocean Color Science Software
Jump to content
ocssw
V2022
web
ocssw
ocssw_src
oel_hdf4
liboli
geographic.c
Go to the documentation of this file.
1
/****************************************************************************
2
Name: geographic
3
4
Purpose: Provides a "dummy" implementation of the geographic projection.
5
Since the geographic projection is the base projection that everything
6
goes through when being transformed, there isn't any transformation
7
needed for it.
8
9
****************************************************************************/
10
#include "
oli_local.h
"
11
#include "
oli_cproj.h
"
12
13
/****************************************************************************
14
Name: geo_print_info
15
16
Purpose: Prints out the projection parameter information for the geographic
17
projection (there aren't any).
18
19
****************************************************************************/
20
static
void
geo_print_info
21
(
22
const
TRANSFORMATION *trans
23
)
24
{
25
gctp_print_title
(
"GEOGRAPHIC"
);
26
}
27
28
/****************************************************************************
29
Name: gctp_geo_init
30
31
Purpose: Initialization routine for the geographic projection.
32
33
Returns:
34
GCTP_SUCCESS (can't fail, but needs to use the standard init routine
35
prototype)
36
37
****************************************************************************/
38
int
gctp_geo_init
(TRANSFORMATION *trans)
39
{
40
/* only need to set the print info routine here */
41
trans->print_info = geo_print_info;
42
return
GCTP_SUCCESS
;
43
}
oli_local.h
gctp_print_title
void gctp_print_title(const char *proj_name)
Definition:
gctp_report.c:14
gctp_geo_init
int gctp_geo_init(TRANSFORMATION *trans)
Definition:
geographic.c:38
oli_cproj.h
GCTP_SUCCESS
#define GCTP_SUCCESS
Definition:
gctp.h:82