pkfilterascii(1)

πŸ’– pkfilterascii(1) πŸ’–

okay so bestie, pull up a chair, because pkfilterascii is one of those lil command-line girlies from the pkfilterascii manual (section 1, the user-commands section, iykyk) and she is so good at what she does 🫢


✨ NAME ✨

pkfilterascii β€” a program to filter data in an ASCII file πŸŽ€


🌸 SYNOPSIS 🌸

pkfilterascii -i input [-ic column] [options] [advanced options]

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the whole vibe of pkfilterascii is: it filters the columns you tell it about with the option -ic. ✨

and like, you've got a whole menu of filters to pick from, and you choose with the option -f. the kernel size? that's the option -dz, she sets the vibe. πŸ’…

or, plot twist, you can be your own filter designer and define your own filter tap values β€” just use the option -tapz for each tap, one at a time, no skips. πŸ‘‘

and if you're doing spectral filtering? then it's time to define the full width half max values (-fwhm value) or else drop in some spectral response functions as ASCII files (-srf filename). literally pick your fighter. 🌈


πŸ’œ OPTIONS πŸ’œ

  • -i filename, --input filename β€” the input ASCII file, aka the main character you're feeding in πŸ“
  • -o filename, --output filename β€” the output ASCII file, where the filtered glow-up gets written πŸ’–
  • -ic column, --inputCols column β€” input columns, bestie. like for three dimensional input data sitting in the first three columns you'd go: -ic 0 -ic 1 -ic 2 ✨
  • -f filter, --filter filter β€” the filter function. heads up though, these ones are still to be implemented: dwt, dwti, dwt_cut πŸ™ˆ
  • -dz value, --dz value β€” filter kernel size in z (that's the band or spectral dimension, for the uninitiated). it must be odd (example: 3). and set dz>0 if a 1-D filter must be used in the band domain ⭐
  • -t, --transpose β€” transposes the output so samples are in rows and wavelengths are in cols. a lil flip, a lil rearrangement, slay πŸ”₯
  • -v level, --verbose level β€” verbose. she talks more πŸ’…

πŸ‘‘ Advanced options πŸ‘‘

  • -tapz value, --tapz value β€” the taps used for spectral filtering πŸŽ€
  • -fwhm value, --fwhm value β€” list of full width half to apply spectral filtering (-fwhm band1 -fwhm band2 ...) 🌸
  • -srf filename, --srf filename β€” list of ASCII files containing spectral response functions (two columns: wavelength response) 🧚
  • -win col, --wavelengthIn col β€” the column number of the input ASCII file that's holding the wavelengths πŸ‘‘
  • -wout value, --wavelengthOut value β€” list of wavelengths in the output spectrum (-wout band1 -wout band2 ...) ✨
  • -interp type, --interp type β€” the type of interpolation for spectral filtering (go peek at http://www.gnu.org/software/gsl/manual/html_node/Interpolation-Types.html) πŸ’–
  • -wt type, --wavelet type β€” the wavelet type. your choices are: daubechies, daubechies_centered, haar, haar_centered, bspline, bspline_centered 🌈
  • -wf family, --wf family β€” the wavelet family (vanishing moment, see also http://www.gnu.org/software/gsl/manual/html_node/DWT-Initialization.html) ⭐
  • -cut threshold, --cut threshold β€” the threshold to cut dwt coefficients. use 0 to keep all of them 🫢

ok real talk though bestie β€” -dz must be odd, that is not a suggestion, that is the law πŸ’€ and those -f filter functions (dwt, dwti, dwt_cut) are still marked to be implemented, so don't come for me if they're not ready πŸ™ˆ

and that's the whole page, no cap. this lil beauty is dated 01 January 2025 and she lives in the pkfilterascii(1) manual β€” go forth and filter, you absolute icon πŸ’…βœ¨πŸ‘‘

πŸ“¦ where this page comes from