pkfilterdem(1)
π pkfilterdem β bestie edition π
okay so this is the manual for pkfilterdem(1) from the pkfilterdem crew, and honestly? she's a whole vibe. we're filtering digital elevation model rasters up in here and i'm gonna walk you through it like we're texting at 2am. no gatekeeping. π«Ά
β¨ NAME β¨
pkfilterdem β filter digital elevation model raster datasets ποΈβ¨
π SYNOPSIS π
pkfilterdem -i input -o output [options] [advanced options]
that's it. that's the whole entrance. -i in, -o out, and the rest is toppings. π
π DESCRIPTION π
pkfilterdem can be used to filter digital elevation models. periodt.
she's typically used after the utility pklas2img(1) to create a digital terrain model. so like, pklas2img does her thing, and then pkfilterdem comes in and cleans it up. the way that pipeline just works. ππ
the default filter operation is the progressive morphological filter. the original page links to it right here:
yes bestie it's a long link. it's giving "academic paper" energy. iykyk. π
π OPTIONS π
the standard menu, gorgeous and reliable:
-i filename,--input filenameβ input image π₯-o filename,--output filenameβ output classification image π€-f filter,--filter filterβ post processing filter. your choices are:vito,etew_min,promorph(the progressive morphological filter),open,close). yes, that trailing)is in the original, we do not edit the queen's punctuation. π-dim maxsize,--dim maxsizeβ maximum filter kernel size π-ot type,--otype typeβ data type for the output image. pick one: (Byte/Int16/UInt16/UInt32/Int32/Float32/Float64/CInt16/CInt32/CFloat32/CFloat64). an empty string means: inherit the type from the input image π§¬-of format,--oformat formatβ output image format (see alsogdal_translate(1)). π¦-ct colortable,--ct colortableβ color table (a file with 5 columns:id R G B ALFA(0: transparent,255: solid)). usenoneto omit the color table π¨-nodata value,--nodata valueβ nodata value π«-v level,--verbose levelβ verbose mode if> 0π£οΈ
π₯ Advanced options π₯
this is the vip section. main character energy only. π
-circ,--circularβ circular disc kernel for dilation and erosion β-st threshold,--st thresholdβ slope threshold used for morphological filtering. use a low value to remove more height objects in flat terrains π-ht threshold,--ht thresholdβ initial height threshold for progressive morphological filtering. use low values to remove more height objects. optionally, a maximum height threshold can be set via a second argument (e.g.,-ht 0.2 -ht 2.5sets an initial threshold at0.2m and caps the threshold at2.5m). πͺ-minchange number,--minchange numberβ stop iterations when no more pixels are changed than this threshold. like, if barely anything's moving, she's done, she's leaving the group chat. ππ¦
π SEE ALSO π
pklas2img(1)
bestie reminder: every flag, value, default, and weird little ) up there is exactly as the original says it. i did not fix anything. i am a good archivist and also a good friend. π
that's the whole page, no cap. this one's from the pkfilterdem(1) fam, dated 01 January 2025 β so yes, she's a New Year's baby, iconic behavior. go filter something gorgeous. slay. π
πΈβ¨
π¦ 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