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 is 0, so by default it's giving ✨untouched✨ β€” but crank it up and she gets smooth 😌
⚠️ heads up bestie: keep those flags exactly as written β€” -it for the smoothing passes and --iteration for 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