OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
gctp_report.c
Go to the documentation of this file.
1 /*******************************************************************************
2 Name: gctp_report
3 
4 Purpose: Provides some routines for printing out information about projection
5  parameters.
6 
7 *******************************************************************************/
8 #include <stdio.h>
9 #include <string.h>
10 #include "oli_cproj.h"
11 #include "oli_local.h"
12 
14 (
15  const char *proj_name
16 )
17 {
18  GCTP_PRINT_INFO("%s PROJECTION PARAMETERS:", proj_name);
19 }
20 
22 (
23  double radius
24 )
25 {
26  GCTP_PRINT_INFO(" Radius of Sphere: %f meters", radius);
27 }
28 
30 (
31  double radius1,
32  double radius2
33 )
34 {
35  GCTP_PRINT_INFO(" Semi-Major Axis of Ellipsoid: %f meters", radius1);
36  GCTP_PRINT_INFO(" Semi-Minor Axis of Ellipsoid: %f meters", radius2);
37 }
38 
40 (
41  double A
42 )
43 {
44  GCTP_PRINT_INFO(" Longitude of Center: %f degrees", A * R2D);
45 }
46 
48 (
49  double A
50 )
51 {
52  GCTP_PRINT_INFO(" Longitude of Central Meridian: %f degrees",
53  A * R2D);
54 }
55 
57 (
58  double A
59 )
60 {
61  GCTP_PRINT_INFO(" Latitude of Center: %f degrees", A * R2D);
62 }
63 
65 (
66  double A
67 )
68 {
69  GCTP_PRINT_INFO(" Latitude of Origin: %f degrees", A * R2D);
70 }
71 
73 (
74  double A,
75  double B
76 )
77 {
78  GCTP_PRINT_INFO(" 1st Standard Parallel: %f degrees", A * R2D);
79  GCTP_PRINT_INFO(" 2nd Standard Parallel: %f degrees", B * R2D);
80 }
81 
83 (
84  double A
85 )
86 {
87  GCTP_PRINT_INFO(" Standard Parallel: %f degrees", A * R2D);
88 }
89 
91 (
92  double A,
93  double B
94 )
95 {
96  GCTP_PRINT_INFO(" False Easting: %f meters", A);
97  GCTP_PRINT_INFO(" False Northing: %f meters", B);
98 }
99 
101 (
102  double A
103 )
104 {
105  GCTP_PRINT_INFO("Number of Latitudinal Zones: %lf", A);
106 }
107 
109 (
110  double A
111 )
112 {
113  GCTP_PRINT_INFO("Right Justify Columns Flag: %lf", A);
114 }
115 
117 (
118  double A,
119  const char *S
120 )
121 {
122  GCTP_PRINT_INFO(" %s %f", S, A);
123 }
124 
126 (
127  long A,
128  const char *S
129 )
130 {
131  GCTP_PRINT_INFO(" %s %ld", S, A);
132 }
void gctp_print_origin(double A)
Definition: gctp_report.c:65
void gctp_print_title(const char *proj_name)
Definition: gctp_report.c:14
void gctp_print_cenlon(double A)
Definition: gctp_report.c:40
void gctp_print_genrpt_long(long A, const char *S)
Definition: gctp_report.c:126
void gctp_print_stparl1(double A)
Definition: gctp_report.c:83
void gctp_print_stanparl(double A, double B)
Definition: gctp_report.c:73
#define GCTP_PRINT_INFO(format,...)
Definition: oli_local.h:75
void radius2(double A, double B)
Definition: proj_report.c:143
void gctp_print_lat_zone(double A)
Definition: gctp_report.c:101
void gctp_print_offsetp(double A, double B)
Definition: gctp_report.c:91
void gctp_print_genrpt(double A, const char *S)
Definition: gctp_report.c:117
void gctp_print_radius2(double radius1, double radius2)
Definition: gctp_report.c:30
void gctp_print_cenlonmer(double A)
Definition: gctp_report.c:48
#define R2D
Definition: proj_define.h:87
void gctp_print_radius(double radius)
Definition: gctp_report.c:22
void gctp_print_justify_cols(double A)
Definition: gctp_report.c:109
void radius(double A)
Definition: proj_report.c:132
void gctp_print_cenlat(double A)
Definition: gctp_report.c:57