Go to the documentation of this file.
29 static double lon_center[12];
30 static double feast[12];
45 lon_center[0] = -1.74532925199;
46 lon_center[1] = -1.74532925199;
47 lon_center[2] = 0.523598775598;
48 lon_center[3] = 0.523598775598;
49 lon_center[4] = -2.79252680319;
50 lon_center[5] = -1.0471975512;
51 lon_center[6] = -2.79252680319;
52 lon_center[7] = -1.0471975512;
53 lon_center[8] = 0.349065850399;
54 lon_center[9] = 2.44346095279;
55 lon_center[10] = 0.349065850399;
56 lon_center[11] = 2.44346095279;
60 feast[0] =
R * -1.74532925199;
61 feast[1] =
R * -1.74532925199;
62 feast[2] =
R * 0.523598775598;
63 feast[3] =
R * 0.523598775598;
64 feast[4] =
R * -2.79252680319;
65 feast[5] =
R * -1.0471975512;
66 feast[6] =
R * -2.79252680319;
67 feast[7] =
R * -1.0471975512;
68 feast[8] =
R * 0.349065850399;
69 feast[9] =
R * 2.44346095279;
70 feast[10] =
R * 0.349065850399;
71 feast[11] =
R * 2.44346095279;
99 if (
lat >= 0.710987989993)
101 if (
lon <= -0.698131700798) region = 0;
106 if (
lon <= -0.698131700798) region = 1;
109 else if (
lat >= -0.710987989993)
111 if (
lon <= -1.74532925199) region = 4;
112 else if (
lon <= -0.349065850399) region = 5;
113 else if (
lon <= 1.3962634016) region = 8;
118 if (
lon <= -1.74532925199) region = 6;
119 else if (
lon <= -0.349065850399) region = 7;
120 else if (
lon <= 1.3962634016) region = 10;
124 if (region==1||region==3||region==4||region==5||region==8||region==9)
127 *
x = feast[region] +
R * delta_lon * cos(
lat);
134 constant =
PI * sin(
lat);
140 delta_theta = -(theta + sin(theta) - constant) / (1.0 + cos(theta));
141 theta += delta_theta;
157 *
x = feast[region] + 0.900316316158 *
R * delta_lon * cos(theta);
158 *
y =
R * (1.4142135623731 * sin(theta) - 0.0528035274542
void gctp_print_title(const char *proj_name)
long goodfor(double lon, double lat, double *x, double *y)
#define GCTP_PRINT_ERROR(format,...)
int gctp_get_sign(double x)
double adjust_lon(double x)
long goodforint(double r)
void gctp_print_radius(double radius)