XCORR(1)
π XCORR(1) π
okay bestie, welcome to the User Commands section of the manual, section 1 β and this one is called xcorr. it's giving "I compute cross-correlations and I'm not sorry about it" π
πΈ NAME πΈ
xcorr β literally xcorr. that's it. that's the name. short, iconic, no notes β¨
β¨ SYNOPSIS β¨
xcorr master.PRM aligned.PRM [-time] [-real] [-freq] [-nx n] [-ny n] [-xsearch xs] [-ysearch ys]
likeβ¦ you give it two PRM files and then sprinkle whatever flags your heart desires π«Ά
π¦ DESCRIPTION π¦
so this program is part of GMTSAR, okay? and here's the whole vibe in one line, exactly as the manpage says it:
xcorr [GMTSAR] - Compute 2-D cross-correlation of two images
two images, 2-D cross-correlation, that's the whole plot. no cap π₯
the two files you're handing over π
master.PRMβ the PRM file for the reference image.aligned.PRMβ the PRM file of the secondary image.
the flags, bestie (yes, all of them) π
-timeβ use time cross-correlation.-freqβ use frequency cross-correlation. this is the default, so if you say nothing, this is what you get.-realβ read float numbers instead of complex numbers.-noshiftβ ignoreashiftandrshiftin the prm file (it sets them to 0).-nxnx β number of locations in the x (range) direction, as an int.-nyny β number of locations in the y (azimuth) direction, as an int.-nointerpβ do not interpolate the correlation function.-range_interpri β interpolate range by ri (a power of two). [default: 2]-norangeβ do not range interpolate.-xsearchxs β search window size in the x (range) direction. int power of 2: [32 64 128 256]-ysearchys β search window size in the y (azimuth) direction. int power of 2: [32 64 128 256]-interpfactor β interpolate the correlation function by factor (an int). [default, 16]-vβ verbose output, and it writes:freq_xcorr.dat(the default)time_xcorr.dat(if you used the-timeoption)
output tea β
use fitoffset.csh to convert the output to PRM format. iykyk β¨
examples (copy these fr fr) π
xcorr IMG-HH-ALPSRP075880660-H1.0__A.PRM IMG-HH-ALPSRP129560660-H1.0__A.PRM -nx 20 -ny 50
xcorr file1.grd file2.grd -nx 20 -ny 50
the second one takes grids with real numbers, just so you know π
and then the manpage justβ¦ says it all again π
for real, here's the Usage line, once more with feeling:
xcorr master.PRM aligned.PRM [-time] [-real] [-freq] [-nx n] [-ny n] [-xsearch xs] [-ysearch ys]
master.PRMβ PRM file for reference imagealigned.PRMβ PRM file of secondary image-timeβ use time cross-correlation-freqβ use frequency cross-correlation (default)-realβ read float numbers instead of complex numbers-noshiftβ ignoreashiftandrshiftin prm file (set to 0)-nxnx β number of locations in x (range) direction (int)-nyny β number of locations in y (azimuth) direction (int)-nointerpβ do not interpolate correlation function-range_interpri β interpolate range by ri (power of two) [default: 2]-norangeβ do not range interpolate-xsearchxs β search window size in x (range) direction (int power of 2 [32 64 128 256])-ysearchys β search window size in y (azimuth) direction (int power of 2 [32 64 128 256])-interpfactor β interpolate correlation function by factor (int) [default, 16]-vβ verbose output:freq_xcorr.dat(default),time_xcorr.dat(if-timeoption)- use
fitoffset.cshto convert output to PRM format - Example:
xcorr IMG-HH-ALPSRP075880660-H1.0__A.PRM IMG-HH-ALPSRP129560660-H1.0__A.PRM -nx 20 -ny 50 - Example:
xcorr file1.grd file2.grd -nx 20 -ny 50(takes grids with real numbers)
like okay repetitive queen, we hear you π
this page isxcorr, describingxcorr [GMTSAR] - Compute ..., dated May 2024, living in section XCORR(1). that's the sign-off bestie, mwah πβ¨ππ¦
π¦ where this page comes from
- debian trixie: gmtsar-core 6.5+ds-3 Β· GPL-3.0-only
- ubuntu questing: gmtsar-core 6.5+ds-3
- ubuntu resolute: gmtsar-core 6.6+ds-1build1 Β· GPL-3.0-only
- ubuntu stonking: gmtsar-core 6.7+ds-2 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms