WSL/SLF GitLab Repository

Commit eaad9300 authored by Mathias Bavay's avatar Mathias Bavay
Browse files

When using Ordinary Kriging, the nodata cells where still computed... This has...

When using Ordinary Kriging, the nodata cells where still computed... This has been fixed, they are now properly skipped.
parent 36818a30
......@@ -873,6 +873,11 @@ void Interpol2D::ODKriging(const std::vector<double>& vecData, const std::vector
//now, calculate each point
for(size_t j=0; j<grid.getNy(); j++) {
for(size_t i=0; i<grid.getNx(); i++) {
if (dem(i,j)==IOUtils::nodata) {
grid(i,j) = IOUtils::nodata;
continue;
}
const double x = llcorner_x+static_cast<double>(i)*cellsize;
const double y = llcorner_y+static_cast<double>(j)*cellsize;
......
Supports Markdown
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