GDAL_FILLNODATA(1)
π NAME
okay so bestie, gdal_fillnodata β it fills raster regions by interpolation from the edges. that's the whole vibe β¨
πΈ SYNOPSIS
gdal_fillnodata [--help] [--help-general] [-q] [-md <max_distance>]
[-si <smoothing_iterations>] [-o <name>=<value> [<name>=<value> ...]]
[-mask <filename>] [-interp {inv_dist,nearest}] [-b <band>]
[-of <gdal_format>] [-co <name>=<value>]
<src_file> <dst_file>
π¦ DESCRIPTION
so gdal_fillnodata fills selection regions (usually your lil nodata areas, the empty spots π) by interpolating from valid pixels all along the edges of the area. like it looks at the good pixels around the hole and goes "okay bet, here's what probably goes here" π
if you want the Actual Algorithm lore, the details live in the GDALFillNodata() docs.
TIP: there's an equivalent in the new"gdal"command line interface: seegdal raster fill-nodata. β¨
NOTE: gdal_fillnodata is a Python utility β it's only available if GDAL Python bindings are available. no bindings, no fill, no cap π
--helpβ shows this help message and exits, bye π--help-generalβ gives you a brief usage message for the generic GDAL commandline options, then exits. the general-vibes cheat sheet π-qβ quiet mode babes π€« the progress monitor is suppressed and routine messages are not displayed. just silence and results.-md <max_distance>β the maximum distance (in pixels) that the algorithm will search out for values to interpolate. the default is100pixels. so like, how far it's willing to look for a good pixel π-si <smooth_iterations>β the number of3x3average filter smoothing iterations to run after the interpolation to dampen artifacts. the default is zero smoothing iterations. (zero = no smoothing, raw and unfiltered, main character behaviour π)-o <name>=<value>β specify a special argument to the algorithm. currently none are supported π that's it. that's the option. empty menu, iconic honestly.-b <band>β the band to operate on. by default the first band is the one that gets operated on.-mask <filename>β use the first band of the specified file as a validity mask β zero is invalid, non-zero is valid. valid pixels are the yes-girls, zero pixels are the no-girls π-of <format>β select the output format. the default isGTiffβ GeoTIFF File Format. use the short format name, bestie, not the long one β¨-interp {inv_dist,nearest}β added in version3.9π by default, pixels are interpolated using an inverse distance weighting (inv_dist). it is also possible to choose a nearest neighbour (nearest) strategy. pick your fighter π«Ά<srcfile>β the source raster file used to identify target pixels. only one band is used, just so you know π<dstfile>β the new file to create with the interpolated result. your brand new baby file π
β RETURN STATUS CODE
the program returns status code 0 in case of success, and non-zero in case of error. (non-blocking errors emitted as warnings are considered a successful execution β so they don't break the streak π
)
π AUTHOR
Frank Warmerdam <warmerdam@pobox.com> β the legend themselves π«‘
π COPYRIGHT
1998-2026
and that's the whole page bestie, mwah π this was the GDAL GDAL_FILLNODATA(1) manual, dated Aug 18, 2026 β go fill some holes, slay, periodt β¨π
π¦ where this page comes from
- alpine 3.24: gdal-doc 3.13.3-r0 Β· MIT
- arch rolling: gdal 3.13.3-6 Β· MIT
- ubuntu stonking: gdal-bin 3.13.3+dfsg-1ubuntu4 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms