mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-07 03:49:43 -05:00
Small json parse fix
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
{"Run":"Yihua_Zheng_011116_1",
|
||||
"Model":"SWMF",
|
||||
"Discipline":"magnetosphere",
|
||||
"Central Body":"Earth",
|
||||
"Spatial Scale (Custom)":"R_E",
|
||||
"Spatial Scale (SI)":"6371000 m",
|
||||
"Coordinates":"GSM",
|
||||
"Coordinate Type":"Cartesian",
|
||||
"Plot Variable":"N",
|
||||
"Plot Variable Unit (Custom)":"amu/cm^3",
|
||||
"Plot Variable Unit (SI)":"1.0e+06 amu/m^3",
|
||||
"Plot XMIN":-224.0,
|
||||
"Plot XMAX":32.0,
|
||||
"Plot YMIN":0.0,
|
||||
"Plot YMAX":0.0,
|
||||
"Plot ZMIN":-48.0,
|
||||
"Plot ZMAX":48.0,
|
||||
"Plot Scaling":"logarithmic (base: 10)",
|
||||
"ISWA_UPDATE_SECONDS":240
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{"Run":"Yihua_Zheng_011116_1",
|
||||
"Model":"SWMF",
|
||||
"Discipline":"magnetosphere",
|
||||
"Central Body":"Earth",
|
||||
"Spatial Scale (Custom)":"R_E",
|
||||
"Spatial Scale (SI)":"6371000 m",
|
||||
"Coordinates":"GSM",
|
||||
"Coordinate Type":"Cartesian",
|
||||
"Plot Variable":"N",
|
||||
"Plot Variable Unit (Custom)":"amu/cm^3",
|
||||
"Plot Variable Unit (SI)":"1.0e+06 amu/m^3",
|
||||
"Plot XMIN":-224.0,
|
||||
"Plot XMAX":32.0,
|
||||
"Plot YMIN":-48.0,
|
||||
"Plot YMAX":48.0,
|
||||
"Plot ZMIN":0.0,
|
||||
"Plot ZMAX":0.0,
|
||||
"Plot Scaling":"logarithmic (base: 10)",
|
||||
"ISWA_UPDATE_SECONDS":240
|
||||
}
|
||||
@@ -163,7 +163,7 @@ namespace openspace{
|
||||
}
|
||||
|
||||
void ISWAManager::addISWACygnet(int id, std::string info){
|
||||
getDictionaryTable(absPath("${OPENSPACE_DATA}/GM_openspace_X0_info.txt"), id);
|
||||
getDictionaryTable(absPath("${OPENSPACE_DATA}/GM_openspace_Y0_info.txt"), id);
|
||||
|
||||
if(id != 0){
|
||||
std::shared_ptr<ExtensionFuture> extFuture = fileExtension(id);
|
||||
@@ -309,7 +309,7 @@ namespace openspace{
|
||||
std::string scale = "{"
|
||||
+ std::to_string(spatScale*(xmax-xmin)) + ","
|
||||
+ std::to_string(spatScale*(ymax-ymin)) + ","
|
||||
+ std::to_string(spatScale*(ymax-ymin)) + ","
|
||||
+ std::to_string(spatScale*(zmax-zmin)) + ","
|
||||
+ std::to_string(scalew) +
|
||||
"}";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user