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:

http://ieeexplore.ieee.org/xpl/login.jsp?tp=&arnumber=1202973&url=http%3A%2F%2Fieeexplore.ieee.org%2Fxpls%2Fabs_all.jsp%3Farnumber%3D1202973

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 also gdal_translate(1)). πŸ“¦
  • -ct colortable, --ct colortable β€” color table (a file with 5 columns: id R G B ALFA (0: transparent, 255: solid)). use none to 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.5 sets an initial threshold at 0.2 m and caps the threshold at 2.5 m). πŸͺœ
  • -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