17 std::cout <<
"Usage: state2tle sx sy sz vx vy vz utc reference-tle-file" << std::endl;
22 std::ifstream tle_file(argv[8]);
23 std::stringstream ref_tle;
24 ref_tle << tle_file.rdbuf();
27 eci_pos.
s.
col[0] = std::stod(argv[1]);
28 eci_pos.
s.
col[1] = std::stod(argv[2]);
29 eci_pos.
s.
col[2] = std::stod(argv[3]);
30 eci_pos.
v.
col[0] = std::stod(argv[4]);
31 eci_pos.
v.
col[1] = std::stod(argv[5]);
32 eci_pos.
v.
col[2] = std::stod(argv[6]);
33 eci_pos.
utc = std::stod(argv[7]);;
37 std::cout << generated_tle
double utc
UTC of Position.
Definition: convertdef.h:161
Cartesian full position structure.
Definition: convertdef.h:158
int32_t eci2tlestring(cartpos eci, string &tle, string ref_tle, double bstar)
Definition: convertlib.cpp:4249
rvector s
Location.
Definition: convertdef.h:163
double col[3]
Definition: vector.h:55
rvector v
Velocity.
Definition: convertdef.h:165