HUBFLOW: Raster.applyMask shows some artefacts

Issue #378 resolved
Andreas Janz created an issue

Reported by @Franz Schug via Skype (23.03.2020)

inPath = "input.tif"
inRaster = Raster(inPath)
inRaster.dataset().setNoDataValue(-999)
outPath =  inPath.replace('input.tif', 'currentOutput.tif')

maskPath = "mask.tif"

mask = Mask(maskPath, noDataValues= [0, 255], minOverallCoverage=0, invert=False)
tempRaster = inRaster.applyMask(filename = outPath, mask = mask, noDataValue = -999)

Problem 1: first line (left boarder) is not correctly masked

Problem 2: some pixels are masked wrongly

Comments (3)

  1. Andreas Janz reporter

    Masking was overhauled and is now available via the “Apply mask layer to raster layer” algo.

  2. Log in to comment