Loading .gitignore +2 −2 Original line number Diff line number Diff line Loading @@ -4,12 +4,12 @@ lib/* include/csm/* # iPython checkpoint items .ipynb_checkpoints/* .ipynb_checkpoints # Ignore any executables bin/* # Ignore any Max stuff # Ignore any Mac stuff .DS_Store *.cpython* Loading src/UsgsAstroLsSensorModel.cpp +9 −0 Original line number Diff line number Diff line Loading @@ -299,6 +299,15 @@ csm::ImageCoord UsgsAstroLsSensorModel::groundToImage( double dz = ground_pt.z - calculatedPoint.z; double len = dx * dx + dy * dy + dz * dz; // Check that the pixel is actually in the image if ((calculatedPixel.samp < 0) || (calculatedPixel.samp > _data.m_TotalSamples)) { throw csm::Error( csm::Error::ALGORITHM, "Ground point is not viewed by the image.", "UsgsAstroLsSensorModel::groundToImage"); } // If the final correction is greater than 10 meters, // the solution is not valid enough to report even with a warning printf("%f\n", len); Loading Loading
.gitignore +2 −2 Original line number Diff line number Diff line Loading @@ -4,12 +4,12 @@ lib/* include/csm/* # iPython checkpoint items .ipynb_checkpoints/* .ipynb_checkpoints # Ignore any executables bin/* # Ignore any Max stuff # Ignore any Mac stuff .DS_Store *.cpython* Loading
src/UsgsAstroLsSensorModel.cpp +9 −0 Original line number Diff line number Diff line Loading @@ -299,6 +299,15 @@ csm::ImageCoord UsgsAstroLsSensorModel::groundToImage( double dz = ground_pt.z - calculatedPoint.z; double len = dx * dx + dy * dy + dz * dz; // Check that the pixel is actually in the image if ((calculatedPixel.samp < 0) || (calculatedPixel.samp > _data.m_TotalSamples)) { throw csm::Error( csm::Error::ALGORITHM, "Ground point is not viewed by the image.", "UsgsAstroLsSensorModel::groundToImage"); } // If the final correction is greater than 10 meters, // the solution is not valid enough to report even with a warning printf("%f\n", len); Loading