PHASEFILT(1)

πŸ’– phasefilt πŸ’– β€” PHASEFILT(1)

okay bestie, welcome to the manual page for phasefilt. It's a user command, it's giving GMTSAR, and it's literally called phasefilt. Let's get into it. ✨


🌸 NAME 🌸

phasefilt β€” phasefilt

That's it. That's the name. Iconic.

πŸ¦‹ DESCRIPTION πŸ¦‹

This program is part of GMTSAR.

phasefilt [GMTSAR] - Apply adaptive non-linear phase filter

πŸ“Œ USAGE:

phasefilt -imag imag.grd -real real.grd [-alpha alpha][-psize size][-amp1 amp1.grd -amp2 amp2.grd][-diff][-v]

It applies Goldstein adaptive filter to phase β€” output: filtphase.grd β€” or it applies modified Goldstein adaptive filter to phase β€” outputs: filtphase.grd, corrfilt.grd.

Now the flags, bestie. Do not skip these, they are the whole plot. πŸ’…

  • -imag [required] β€” GMT format file of imaginary component. Yes, required, required required. πŸ¦‹
  • -real [required] β€” GMT format file of real component. Also required. The duality of man. πŸ’–
  • -alpha β€” exponent for filter. Usually between 0.0 and 1.5 (0.0 should not filter).
    • default: 0.5
    • [Goldstein filter] (anything above 1.0 may be excessive)
    • alpha < 0 will set alpha = (1 - coherence) [modified Goldstein]
  • -psize β€” patch size for filtering. Must be power of two.
    • default: 32
  • -amp1 β€” GMT format file of amplitude image of image 1. Needed (and applies) modified filter.
  • -amp2 β€” GMT format file of amplitude image of image 2. Needed (and applies) modified filter.
  • -diff β€” Calculate difference between input phase and output phase.
  • -complex_out β€” Write out filtered real and imaginary (filtphase_real.grd and filtphase_imag.grd)
  • -v β€” Verbose.
  • -debug β€” Debug.

Example, because we love a demo:

example: phasefilt -imag imag.grd -real real.grd -alpha 0.5

πŸ” USAGE: (yes, the page does it again, and I'm keeping every crumb)

okay so literally the same section repeats, and I am not about to erase it. Details are sacred. Here it is again, bestie:

phasefilt -imag imag.grd -real real.grd [-alpha alpha][-psize size][-amp1 amp1.grd -amp2 amp2.grd][-diff][-v]

It applies Goldstein adaptive filter to phase β€” output: filtphase.grd β€” or it applies modified Goldstein adaptive filter to phase β€” outputs: filtphase.grd, corrfilt.grd.

  • -imag [required] β€” GMT format file of imaginary component.
  • -real [required] β€” GMT format file of real component.
  • -alpha β€” exponent for filter. Usually between 0.0 and 1.5 (0.0 should not filter).
    • default: 0.5
    • [Goldstein filter] (anything above 1.0 may be excessive)
    • alpha < 0 will set alpha = (1 - coherence) [modified Goldstein]
  • -psize β€” patch size for filtering. Must be power of two.
    • default: 32
  • -amp1 β€” GMT format file of amplitude image of image 1. Needed (and applies) modified filter.
  • -amp2 β€” GMT format file of amplitude image of image 2. Needed (and applies) modified filter.
  • -diff β€” Calculate difference between input phase and output phase.
  • -complex_out β€” Write out filtered real and imaginary (filtphase_real.grd and filtphase_imag.grd)
  • -v β€” Verbose.
  • -debug β€” Debug.

Example again, because the manpage said so:

example: phasefilt -imag imag.grd -real real.grd -alpha 0.5

mwah πŸ’– this page is signed off with phasefilt, source/version says phasefilt phasefilt [GMTSAR] - ..., dated May 2024, and the manual name is PHASEFILT(1). bye bestie, go filter some phase ✨

πŸ“¦ where this page comes from