91 period = atof(argv[2]);
94 if (
nodename.find(
":") != string::npos)
97 nodename = nodename.substr(0, nodename.find(
":"));
101 printf(
"Usage: get_contacts gsname[:minelev] [days [sat1 [sat2 [...]]]]\n");
114 std::vector <std::string>
nodes;
117 for (
size_t i=0;
i<nodes.size(); ++
i)
122 FILE *
fp = fopen(path.c_str(),
"r");
126 fscanf(fp,
"{\"node_type\":%d", &type);
132 ttrack.
name = nodes[
i];
146 track.push_back(ttrack);
155 for (
size_t i=0; i<
track.size(); ++
i)
164 for (
size_t i=0; i<
track.size(); ++
i)
Definition: agent_control.cpp:165
int32_t json_setup_node(jsonnode json, cosmosstruc *cinfo, bool create_flag)
Setup JSON Namespace using Node description JSON.
Definition: jsonlib.cpp:6869
double utc
UTC of Position.
Definition: convertdef.h:161
int i
Definition: rw_test.cpp:37
int iretn
Definition: rw_test.cpp:37
double utc
Master time for location, in Modified Julian Day.
Definition: convertdef.h:879
uint16_t type
Definition: jsondef.h:1294
string data_base_path(string node, string location, string agent, string filename)
Create data file path.
Definition: datalib.cpp:767
cosmosstruc * json_init()
Initialize JSON pointer map.
Definition: jsonlib.cpp:454
vector< string > data_list_nodes()
Get list of Nodes, directly.
Definition: datalib.cpp:583
bool visible
Definition: fast_contacts.cpp:52
double utc
Definition: jsondef.h:1292
nodestruc node
Structure for summary information in node.
Definition: jsondef.h:4220
Definition: cosmos-defs.h:90
std::vector< cosmosstruc > nodes
Definition: agent_data-2-0.cpp:57
Definition: agentclass.h:139
locstruc loc
Location structure.
Definition: jsondef.h:3596
Definition: eci2kep_test.cpp:33
string name
Definition: agent_control.cpp:170
bool peaked
Definition: fast_contacts.cpp:53
void json_destroy(cosmosstruc *cinfo)
Remove JSON pointer map.
Definition: jsonlib.cpp:491
double currentmjd(double offset)
Current UTC in Modified Julian Days.
Definition: timelib.cpp:65
targetstruc target
Definition: agent_control.cpp:168
posstruc pos
posstruc for this time.
Definition: convertdef.h:881
locstruc loc
Definition: jsondef.h:1302
physicsstruc physics
Definition: agent_control.cpp:169
cartpos eci
Definition: convertdef.h:737
FILE * fp
Definition: rw_test.cpp:38
#define AGENT_ERROR_JSON_CREATE
Definition: cosmos-errno.h:105
Definition: jsondef.h:4199
uint16_t type
Node Type as listed in NODE_TYPE.
Definition: jsondef.h:3562
physicsstruc phys
Definition: jsondef.h:3597
#define RADOF(deg)
Radians of a Degree value.
Definition: math/constants.h:29