Loading .travis.yml +3 −3 Original line number Diff line number Diff line Loading @@ -40,7 +40,7 @@ script: - cd build - cmake -DCOVERAGE=ON .. - cmake --build . - ctest - ctest -VV - cd .. after_success: Loading src/UsgsAstroFramePlugin.cpp +20 −0 Original line number Diff line number Diff line Loading @@ -48,6 +48,7 @@ const std::string UsgsAstroFramePlugin::_ISD_KEYWORD[] = "sensor_location", "sensor_orientation", "sensor_velocity", "detector_center", "starting_detector_line", "starting_detector_sample", "starting_ephemeris_time", Loading Loading @@ -435,6 +436,25 @@ csm::Model *UsgsAstroFramePlugin::constructModelFromISD(const csm::Isd &imageSup missingKeywords.push_back("image_samples"); } if (imageSupportData.param("detector_center") == "") { missingKeywords.push_back("detector_center"); } else { json jayson = json::parse(imageSupportData.param("detector_center")); json sample = jayson.value("sample", json("")); json line = jayson.value("line", json("")); sensorModel->m_ccdCenter[0] = atof(sample.dump().c_str()); sensorModel->m_ccdCenter[1] = atof(line.dump().c_str()); if (sample == json("")) { missingKeywords.push_back("detector_center x"); } if (line == json("")) { missingKeywords.push_back("detector_center y"); } } sensorModel->m_iTransL[0] = atof(imageSupportData.param("focal2pixel_lines", 0).c_str()); sensorModel->m_iTransL[1] = atof(imageSupportData.param("focal2pixel_lines", 1).c_str()); sensorModel->m_iTransL[2] = atof(imageSupportData.param("focal2pixel_lines", 2).c_str()); Loading src/UsgsAstroFrameSensorModel.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -91,8 +91,8 @@ UsgsAstroFrameSensorModel::UsgsAstroFrameSensorModel() { m_line_pp = 0.0; m_sample_pp = 0.0; m_odtX.assign(0.0, 0.0); m_odtY.assign(0.0, 0.0); m_odtX.assign(10, 0.0); m_odtY.assign(10, 0.0); m_originalHalfLines = 0.0; m_spacecraftName = ""; Loading tests/data/simpleFramerISD.json +4 −0 Original line number Diff line number Diff line Loading @@ -9,6 +9,10 @@ }, "image_lines": 15, "image_samples": 15, "detector_center" : { "line" : 7.5, "sample" : 7.5 }, "interpolation_method": "lagrange", "number_of_ephemerides": 1, "optical_distortion": { Loading Loading
.travis.yml +3 −3 Original line number Diff line number Diff line Loading @@ -40,7 +40,7 @@ script: - cd build - cmake -DCOVERAGE=ON .. - cmake --build . - ctest - ctest -VV - cd .. after_success: Loading
src/UsgsAstroFramePlugin.cpp +20 −0 Original line number Diff line number Diff line Loading @@ -48,6 +48,7 @@ const std::string UsgsAstroFramePlugin::_ISD_KEYWORD[] = "sensor_location", "sensor_orientation", "sensor_velocity", "detector_center", "starting_detector_line", "starting_detector_sample", "starting_ephemeris_time", Loading Loading @@ -435,6 +436,25 @@ csm::Model *UsgsAstroFramePlugin::constructModelFromISD(const csm::Isd &imageSup missingKeywords.push_back("image_samples"); } if (imageSupportData.param("detector_center") == "") { missingKeywords.push_back("detector_center"); } else { json jayson = json::parse(imageSupportData.param("detector_center")); json sample = jayson.value("sample", json("")); json line = jayson.value("line", json("")); sensorModel->m_ccdCenter[0] = atof(sample.dump().c_str()); sensorModel->m_ccdCenter[1] = atof(line.dump().c_str()); if (sample == json("")) { missingKeywords.push_back("detector_center x"); } if (line == json("")) { missingKeywords.push_back("detector_center y"); } } sensorModel->m_iTransL[0] = atof(imageSupportData.param("focal2pixel_lines", 0).c_str()); sensorModel->m_iTransL[1] = atof(imageSupportData.param("focal2pixel_lines", 1).c_str()); sensorModel->m_iTransL[2] = atof(imageSupportData.param("focal2pixel_lines", 2).c_str()); Loading
src/UsgsAstroFrameSensorModel.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -91,8 +91,8 @@ UsgsAstroFrameSensorModel::UsgsAstroFrameSensorModel() { m_line_pp = 0.0; m_sample_pp = 0.0; m_odtX.assign(0.0, 0.0); m_odtY.assign(0.0, 0.0); m_odtX.assign(10, 0.0); m_odtY.assign(10, 0.0); m_originalHalfLines = 0.0; m_spacecraftName = ""; Loading
tests/data/simpleFramerISD.json +4 −0 Original line number Diff line number Diff line Loading @@ -9,6 +9,10 @@ }, "image_lines": 15, "image_samples": 15, "detector_center" : { "line" : 7.5, "sample" : 7.5 }, "interpolation_method": "lagrange", "number_of_ephemerides": 1, "optical_distortion": { Loading