Set class contents from JSON string.
Parses the provided JSON-formatted string and sets the class data. String should be formatted like the string returned from to_json()
794 if(!parsed[
"utc"].is_null())
utc = parsed[
"utc"].number_value();
805 if(!parsed[
"earthsep"].is_null())
earthsep = parsed[
"earthsep"].number_value();
806 if(!parsed[
"moonsep"].is_null())
moonsep = parsed[
"moonsep"].number_value();
807 if(!parsed[
"sunsize"].is_null())
sunsize = parsed[
"sunsize"].number_value();
808 if(!parsed[
"sunradiance"].is_null())
sunradiance = parsed[
"sunradiance"].number_value();
811 if(!parsed[
"orbit"].is_null())
orbit = parsed[
"orbit"].number_value();
814 cerr<<
"ERROR = "<<error<<endl;
rvector bearth
Earth magnetic vector in ITRS for this time and location.
Definition: convertdef.h:754
Definition: json11.hpp:79
double orbit
Decimal Orbit number.
Definition: convertdef.h:756
spherpos geos
Definition: convertdef.h:743
cartpos selc
Definition: convertdef.h:740
cartpos geoc
Definition: convertdef.h:739
float moonsep
Separation between sun/satellite and sun/limbofmoon vectors in radians.
Definition: convertdef.h:748
float earthsep
Separation between sun/satellite and sun/limbofearth vectors in radians.
Definition: convertdef.h:746
float sunradiance
Watts per square meter per steradian.
Definition: convertdef.h:752
void from_json(const string &js)
Set class contents from JSON string.
Definition: convertdef.h:192
geoidpos selg
Definition: convertdef.h:742
void dump(std::string &out) const
void from_json(const string &js)
Set class contents from JSON string.
Definition: convertdef.h:346
static Json parse(const std::string &in, std::string &err, JsonParse strategy=JsonParse::STANDARD)
void from_json(const string &js)
Set class contents from JSON string.
Definition: convertdef.h:291
double utc
Definition: convertdef.h:735
extrapos extra
Definition: convertdef.h:744
cartpos sci
Definition: convertdef.h:738
float sunsize
Radius of sun in radians.
Definition: convertdef.h:750
cartpos eci
Definition: convertdef.h:737
void from_json(const string &s)
Set class contents from JSON string.
Definition: vector.h:80
geoidpos geod
Definition: convertdef.h:741
cartpos icrf
Definition: convertdef.h:736