101 static int maxdeg, itime;
102 static float alt, dec, dip, ti, gv, bx, by, bz;
105 itime = 5 * (int)(time/5.);
112 sprintf(
fname,
"%s/general/wmm_%04d.cof", rname.c_str(), itime);
136 alt = (float)(pos.
h/1000.);
161 comp.
col[0] = static_cast <
double>(bx * 1
e-9f);
162 comp.
col[1] = static_cast <
double>(by * 1
e-9f);
163 comp.
col[2] = static_cast <
double>(bz * 1
e-9f);
Definition: eci2kep_test.cpp:33
int iretn
Definition: rw_test.cpp:37
string get_cosmosresources(bool create_flag)
Return COSMOS Resources Directory.
Definition: datalib.cpp:1337
static char fname[100]
Definition: geomag.cpp:89
static int initialized
Definition: geomag.cpp:88
double h
Height in meters.
Definition: vector.h:229
double lon
Longitude in radians.
Definition: vector.h:227
double lat
Latitude in radians.
Definition: vector.h:225
int32_t geomag(int *maxdeg)
Definition: geomag.cpp:476
double col[3]
Definition: vector.h:55
int32_t geomg1(float alt, float rlat, float rlon, float time, float *dec, float *dip, float *ti, float *gv, float *bx, float *by, float *bz)
Definition: geomag.cpp:483