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 setdz>0if 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 athttp://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 alsohttp://www.gnu.org/software/gsl/manual/html_node/DWT-Initialization.html) β-cut threshold,--cut thresholdβ the threshold to cut dwt coefficients. use0to keep all of them π«Ά
ok real talk though bestie β-dzmust be odd, that is not a suggestion, that is the law π and those-ffilter 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
- 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