mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 11:39:49 -06:00
finish merge + manual time offset property
This commit is contained in:
@@ -91,6 +91,7 @@ namespace openspace::fls {
|
||||
bool convertCdfToFieldlinesState(FieldlinesState& state, const std::string& cdfPath,
|
||||
const std::unordered_map<std::string,
|
||||
std::vector<glm::vec3>>& seedMap,
|
||||
double manualTimeOffset,
|
||||
const std::string& tracingVar,
|
||||
std::vector<std::string>& extraVars,
|
||||
std::vector<std::string>& extraMagVars)
|
||||
@@ -106,12 +107,12 @@ bool convertCdfToFieldlinesState(FieldlinesState& state, const std::string& cdfP
|
||||
);
|
||||
|
||||
state.setModel(fls::stringToModel(kameleon->getModelName()));
|
||||
double cdfDoubleTime = kameleonHelper::getTime(kameleon.get());
|
||||
double cdfDoubleTime = kameleonHelper::getTime(kameleon.get(), manualTimeOffset);
|
||||
state.setTriggerTime(cdfDoubleTime);
|
||||
|
||||
//get time as string.
|
||||
std::string cdfStringTime = SpiceManager::ref().dateFromEphemerisTime(cdfDoubleTime,
|
||||
"YYYYMMDDHRMNSC::RND"); //YYYY MM DD HOUR MIN SEC ROUNDED
|
||||
"YYYYMMDDHRMNSC::RND"); //YYYY MM DD HOUR MIN SEC ROUNDED
|
||||
|
||||
// use time as string for picking seedpoints from seedm
|
||||
std::vector<glm::vec3> seedPoints = seedMap.at(cdfStringTime);
|
||||
|
||||
@@ -37,8 +37,8 @@ namespace fls {
|
||||
|
||||
bool convertCdfToFieldlinesState(FieldlinesState& state, const std::string& cdfPath,
|
||||
const std::unordered_map<std::string, std::vector<glm::vec3>>& seedMap,
|
||||
const std::string& tracingVar, std::vector<std::string>& extraVars,
|
||||
std::vector<std::string>& extraMagVars);
|
||||
double manualTimeOffset, const std::string& tracingVar,
|
||||
std::vector<std::string>& extraVars, std::vector<std::string>& extraMagVars);
|
||||
|
||||
} // namespace fls
|
||||
} // namespace openspace
|
||||
|
||||
Reference in New Issue
Block a user