pkfillnodata(1)
π pkfillnodata β bestie's guide to filling holes π
okay so welcome to pkfillnodata, section 1 of the manual, and no cap this little program is here to fill the holes in your raster image. holes? gone. gaps? slayed. let's get into it π«Ά
β¨ SYNOPSIS β¨
pkfillnodata -i input -m mask -o output [options] [advanced options]
like, that's the whole vibe. three required-ish things and then the fun extras πΈ
π¦ DESCRIPTION π¦
So pkfillnodata fills nodata values in a raster dataset. And what counts as a nodata value, you ask? bestie, it's literally the 0 values in the mask raster dataset. periodt. that's the definition π
And here's the cute part: you can totally just use the input file as the mask image if the 0 values in the input raster are the ones that have to be filled. one file, two jobs, main character energy π
Per default, all bands are filled β every single one, no band left behind π. But if you're working with a multiband raster input image and you only want to fill individual band(s), use the option -b and pick your faves. iykyk β¨
π OPTIONS π
-i filename,--input filenameβ the input raster dataset. your source material, your origin story π-m mask,--mask maskβ the mask raster dataset that indicates which pixels are getting interpolated (the zero valued ones, to be exact) π―-o filename,--output filenameβ the output image file. this is where the glow-up gets saved πΎβ¨-b band,--band bandβ which band(s) to process. Default is-1: process all bands πΆ (yes bestie, all of them, the whole lineup)-v level,--verbose levelβ verbose. she talks more. that's it, that's the setting π£οΈ
π₯ Advanced options π₯
-d distance,--distance distanceβ the maximum number of pixels to search in all directions to find values to interpolate from. like, how far are we willing to look for a good value? a little stroll or a full quest π§-it iterations,--iteration iterationsβ the number of 3x3 smoothing filter passes to run. default is0, so by default it's giving β¨untouchedβ¨ β but crank it up and she gets smooth π
β οΈ heads up bestie: keep those flags exactly as written β-itfor the smoothing passes and--iterationfor the long form. don't go renaming things, the program will simply not get the memo π
and that's the whole page, you ate it, you understood it, you're a raster icon now πππ
this manual page is from 01 January 2025, and it's the pkfillnodata(1) page β so if you ever need to find her again, that's the name and that's the date, mwah π
π¦ where this page comes from
- ubuntu questing: pktools 2.6.7.6+ds-6build4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms