Commit 73edf90c authored by Cédric Traizet's avatar Cédric Traizet
Browse files

ENH: noise_s1_test code review

parent 75ac9bf2
Pipeline #8166 failed with stages
in 144 minutes and 35 seconds
......@@ -118,8 +118,7 @@ T S1ThermalNoiseLookupData<T>::GetAzimuthNoise(const IndexValueType x, const Ind
const auto pixelIdx = GetPixelIndex(y, vec.lines);
const double lutVal = vec.vect[pixelIdx] + ( (y - vec.lines[pixelIdx]) / (vec.lines[pixelIdx+1] - vec.lines[pixelIdx]) ) * (vec.vect[pixelIdx + 1] - vec.vect[pixelIdx]);
const double lutVal = vec.vect[pixelIdx] + (vec.vect[pixelIdx + 1] - vec.vect[pixelIdx]) * ( double((y - vec.lines[pixelIdx])) / double((vec.lines[pixelIdx+1] - vec.lines[pixelIdx])) );
const double lutVal = vec.vect[pixelIdx] + (vec.vect[pixelIdx + 1] - vec.vect[pixelIdx]) * (static_cast<double>(y - vec.lines[pixelIdx]) / static_cast<double>(vec.lines[pixelIdx+1] - vec.lines[pixelIdx]));
return lutVal;
}
else
......
......@@ -853,8 +853,6 @@ namespace ossimplugins
void ossimSentinel1Model::readCalibrationMetadata(ossimFilename const& calibrationFilename)
{
assert(calibrationFilename.exists());
std::stringstream strm;
ossimXmlDocument calibrationDoc;
......@@ -866,7 +864,7 @@ namespace ossimplugins
ossimXmlNode const& calibrationInformation = getExpectedFirstNode(*calibrationRoot, "calibrationInformation");
ossimXmlNode const& calibrationVectorList = getExpectedFirstNode(*calibrationRoot, "calibrationVectorList");
char const calibrationPrefix[] = "calibration.";
const char *calibrationPrefix = "calibration.";
addMandatory(theProductKwl, calibrationPrefix, "swath", adsHeader, "swath");
addMandatory(theProductKwl, calibrationPrefix, "polarisation", adsHeader, "polarisation");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment