Go to the documentation of this file.
38 static int32_t terminal_p;
39 static int32_t terminal_e;
40 static int32_t file_p;
41 static int32_t file_e;
44 static char parm_file[256];
45 static char err_file[256];
47 void p_error(
char *what,
char *where);
51 int init(ipr, jpr, efile, pfile)
65 if (strlen(efile) == 0) {
73 if (strlen(efile) == 0) {
75 p_error(
"Output file name not specified",
"report-file");
90 if (strlen(pfile) == 0) {
98 if (strlen(pfile) == 0) {
100 p_error(
"Output file name not specified",
"report-file");
124 printf(
"\n%s PROJECTION PARAMETERS:\n\n", A);
126 fptr_p = (FILE *) fopen(parm_file,
"a");
127 fprintf(fptr_p,
"\n%s PROJECTION PARAMETERS:\n\n", A);
135 printf(
" Radius of Sphere: %lf meters\n", A);
137 fptr_p = (FILE *) fopen(parm_file,
"a");
138 fprintf(fptr_p,
" Radius of Sphere: %lf meters\n", A);
146 printf(
" Semi-Major Axis of Ellipsoid: %lf meters\n", A);
147 printf(
" Semi-Minor Axis of Ellipsoid: %lf meters\n", B);
150 fptr_p = (FILE *) fopen(parm_file,
"a");
151 fprintf(fptr_p,
" Semi-Major Axis of Ellipsoid: %lf meters\n", A);
152 fprintf(fptr_p,
" Semi-Minor Axis of Ellipsoid: %lf meters\n", B);
160 printf(
" Longitude of Center: %lf degrees\n", A *
R2D);
162 fptr_p = (FILE *) fopen(parm_file,
"a");
163 fprintf(fptr_p,
" Longitude of Center: %lf degrees\n", A *
R2D);
171 printf(
" Longitude of Central Meridian: %lf degrees\n", A *
R2D);
173 fptr_p = (FILE *) fopen(parm_file,
"a");
174 fprintf(fptr_p,
" Longitude of Central Meridian: %lf degrees\n", A *
R2D);
182 printf(
" Latitude of Center: %lf degrees\n", A *
R2D);
184 fptr_p = (FILE *) fopen(parm_file,
"a");
185 fprintf(fptr_p,
" Latitude of Center: %lf degrees\n", A *
R2D);
193 printf(
" Latitude of Origin: %lf degrees\n", A *
R2D);
195 fptr_p = (FILE *) fopen(parm_file,
"a");
196 fprintf(fptr_p,
" Latitude of Origin: %lf degrees\n", A *
R2D);
204 printf(
" 1st Standard Parallel: %lf degrees\n", A *
R2D);
205 printf(
" 2nd Standard Parallel: %lf degrees\n", B *
R2D);
208 fptr_p = (FILE *) fopen(parm_file,
"a");
209 fprintf(fptr_p,
" 1st Standard Parallel: %lf degrees\n", A *
R2D);
210 fprintf(fptr_p,
" 2nd Standard Parallel: %lf degrees\n", B *
R2D);
218 printf(
" Standard Parallel: %lf degrees\n", A *
R2D);
221 fptr_p = (FILE *) fopen(parm_file,
"a");
222 fprintf(fptr_p,
" Standard Parallel: %lf degrees\n", A *
R2D);
230 printf(
" False Easting: %lf meters \n", A);
231 printf(
" False Northing: %lf meters \n", B);
234 fptr_p = (FILE *) fopen(parm_file,
"a");
235 fprintf(fptr_p,
" False Easting: %lf meters \n", A);
236 fprintf(fptr_p,
" False Northing: %lf meters \n", B);
245 printf(
" %s %lf\n", S, A);
247 fptr_p = (FILE *) fopen(parm_file,
"a");
248 fprintf(fptr_p,
" %s %lf\n", S, A);
257 printf(
" %s %d\n", S, A);
259 fptr_p = (FILE *) fopen(parm_file,
"a");
260 fprintf(fptr_p,
" %s %d\n", S, A);
269 fptr_p = (FILE *) fopen(parm_file,
"a");
270 fprintf(fptr_p,
"\n");
282 printf(
"[%s] %s\n", where, what);
284 fptr_e = (FILE *) fopen(err_file,
"a");
285 fprintf(fptr_e,
"[%s] %s\n", where, what);
void p_error(char *what, char *where)
void offsetp(double A, double B)
int init(int32_t ipr, int32_t jpr, char *efile, char *pfile)
void radius2(double A, double B)
void genrpt_long(int32_t A, char *S)
How many dimensions is the output array Default is Not sure if anything above will work correctly strcpy(l2prod->title, "no title yet")
void genrpt(double A, char *S)
void stanparl(double A, double B)