FACT++
1.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
static void pal__Geoc
(
double
p
,
double
h
,
double *
r
,
double *
z
)
static
Definition at line
228
of file
palAoppa.c
.
Referenced by
palAoppa()
.
228
{
229
/* earth equatorial radius (metres) */
230
const
double
A0=6378140.0;
231
232
/* reference spheroid flattening factor and useful function */
233
const
double
f = 1.0/298.257;
234
double
b;
235
236
/* astronomical unit in metres */
237
const
double
AU = 1.49597870e11;
238
239
double
sp,cp,c,s;
240
241
b = pow( 1.0-f, 2.0 );
242
243
/* geodetic to geocentric conversion */
244
sp = sin(
p
);
245
cp = cos(
p
);
246
c = 1.0/sqrt(cp*cp+b*sp*sp);
247
s = b*c;
248
*r = (A0*c+
h
)*cp/AU;
249
*z = (A0*s+
h
)*sp/AU;
250
251
}
telData::h
double h
Definition:
palObs.c:170
telData::p
double p
Definition:
palObs.c:169
Here is the caller graph for this function:
pal
palAoppa.c
Generated on Sun Sep 18 2016 20:50:39 for FACT++ by
1.8.11