CPX2PS(1)
β¨ NAME β¨
cpx2ps β bestie, this is the CPX2PS(1) manual page, and it does one gorgeous thing: it produces various eps codes from complex data files. π β¨
π DESCRIPTION π
cpx2ps v2.1, FMR software, Bert Kampes, (c)1999-2000 \n
okay so first things first, the page literally opens with this:
π¨ +++ WARNING: infile missing π¨
...and then it just keeps going, twice. Yes, twice. We're gonna go through both, because the second one has a tiny little difference and we do not skip details in this house. π
π +++ WARNING: infile missing β the first one
β¨ SYNOPSIS:
cpx2ps -w width [-f format==cr4] [-q out==mag] [-e exp==1.0] [-s sc==1.0]
[-l 1] [-L alllines] [-p 1] [-P width] [-M1/1 | -F1/1] [-m mirror] [-T title] [-c cptname==gray] [-z size==16] [-o epsfile] [-G grdfile] [-C cptfile] [-gKSUVZ] [-h elp] [--] cpxfile
πΈ cpxfiddle options:
-wwidth β how wide the complexfile is, measured in complex pixels π¦-fformat β the format of the complex input file. Options areci2|cr4|cr8, andcr4is the default.r4is now also possible, though it limites other options β and fr fr, don't use subsampling, mirroring etc. with it, because the file iscat-ed. π-qoutput β what actually gets computed:mag|phase|real|imag|normal, andmagis the default π-eexp β computescale*output^expβ¨-sscale β computescale*output^expβ¨ (same deal, it's the scale half of that lil equation)-lfirstline β cut out the complexfile starting from firstline-Llastline β cut out the complexfile up to lastline-pfirstpixel β cut out the complexfile starting from firstpixel-Plastpixel β cut out the complexfile up to lastpixel-mX Y XY β the mirror option. πͺ-M1/1 β multilook factor in the X/Y direction-F1/1 β subsample Factor in the X/Y direction
π GMT options:
-Ttitle β title to plot (one word only for now), default is no title-ccolortable β name of the color table (seegrd2cpt). If-q magthen the gray table is the default; if-q otherthen the gray table is the default. π¨ (yes, that's what it says, and we're relaying it faithfully)-Sβ add a scale bar (psscale) π-Zβ continuous color table (grd2cpt)-Kβ Leave the postscript file open after the last call to GMT-zcm β largest size of paper π-Uβ Place UNIX time stamp and filename in the output π
π« General options:
-gβ Do not callgvto view the result. (main character energy: you just don't look at it π )-oβ output postscript file, default =23812.eps(pid)-Gβ output grd file, default =23812.eps(pid). If specified, the file is not removed at the end. If the file exists, you get prompted for reuse. π-Cβ output cpt file, default =23812.cpt(pid). If specified, the file is not removed at the end. If the file exists, you get prompted for reuse. π-Verbose β give verbose information π£οΈ-help β this help π- complexfile β the inputfile, major row order pixel interleaved
π EXAMPLES:
Generate a postscript file with the phase of a complex interferogram in the file cpxint.raw (complex 2x4B floats) that has 998 range pixels:
cpx2ps -w 998 -qphase -fcr4 -- cpxint.raw
The same but with a scale bar, timestamp, and no title:
cpx2ps -w 998 -qphase -fcr4 -Tnone -U -S -- cpxint.raw
To plot the magnitude to the power 0.3 of a file in the format complex short integers (2x2B) use:
cpx2ps -w 998 -qmag -fci2 -e0.3 -- cpxint.raw
To see a large file it is convenient to set a large size (-z). This file cannot be printed, but viewing it with gv is nice:
cpx2ps -w 998 -qphase -z200 -- cpxint.raw
To plot the phase of a hgt file, first create a tmp file with the program hgt2file (hgtfile infile linelength tmpfile [ampflag]). Next, run cpx2ps with appropriate flags for a float file, e.g. (Note that this limits some options in scaling etc.):
cpx2ps -w 998 -crainbow -fr4 -- tmpfile
π BUGS:
When mirroring and multilooking/subsampling, sometimes the number of lines/pixels of the output is computed incorrectly. Simply don't use multilooking/subsampling... π
Please mail bugs/comments to kampes@geo.tudelft.nl
π SEE ALSO:
cpxfiddle, GMT
π +++ WARNING: infile missing β the second one (she's back π)
and yeah, here it is again, this time with a PROGRAM: line and slightly different default pid numbers β watch for 23819 where the first one said 23812. No cap. π
PROGRAM: cpx2ps -- Produce various eps codes from complex data files.
β¨ SYNOPSIS:
cpx2ps -w width [-f format==cr4] [-q out==mag] [-e exp==1.0] [-s sc==1.0]
[-l 1] [-L alllines] [-p 1] [-P width] [-M1/1 | -F1/1] [-m mirror] [-T title] [-c cptname==gray] [-z size==16] [-o epsfile] [-G grdfile] [-C cptfile] [-gKSUVZ] [-h elp] [--] cpxfile
πΈ cpxfiddle options:
-wwidth β of complexfile in complex pixels π¦-fformat β of complex input file.ci2|cr4|cr8(cr4is default),r4now also possible, though it limites other options. Do not use subsampling, mirroring etc, file iscat-ed. π-qoutput β what is to be computed:mag|phase|real|imag|normal(magis default) π-eexp β computescale*output^expβ¨-sscale β computescale*output^expβ¨-lfirstline β cut out complexfile from firstline-Llastline β cut out complexfile up to lastline-pfirstpixel β cut out complexfile from firstpixel-Plastpixel β cut out complexfile up to lastpixel-mX Y XY β mirror option. πͺ-M1/1 β multilook factor in X/Y direction-F1/1 β subsample Factor in X/Y direction
π GMT options:
-Ttitle β title to plot (one word only for now), default no title-ccolortable β name of color table (seegrd2cpt). If-q magthen gray table is default; if-q otherthen gray table is default. π¨-Sβ add a scale bar (psscale) π-Zβ continuous color table (grd2cpt)-Kβ Leave postscript file open after last call to GMT-zcm β largest size of paper π-Uβ Place UNIX time stamp and filename in output π
π« General options:
-gβ Do not callgvto view result. π-oβ output postscript file, default =23819.eps(pid)-Gβ output grd file, default =23819.eps(pid). If specified, file is not removed at end. If file exists, prompted for reuse. π-Cβ output cpt file, default =23819.cpt(pid). If specified, file is not removed at end. If file exists, prompted for reuse. π-Verbose β give verbose information π£οΈ-help β this help π- complexfile β inputfile, major row order pixel interleaved
π EXAMPLES:
Generate a postscript file with phase of complex interferogram in file cpxint.raw (complex 2x4B floats) that has 998 range pixels:
cpx2ps -w 998 -qphase -fcr4 -- cpxint.raw
The same but with a scale bar, timestamp, and no title:
cpx2ps -w 998 -qphase -fcr4 -Tnone -U -S -- cpxint.raw
To plot the magnitude to the power 0.3 of a file in the format complex short integers (2x2B) use:
cpx2ps -w 998 -qmag -fci2 -e0.3 -- cpxint.raw
To see a large file it is convenient to set a large size (-z). This file cannot be printed, but viewing it with gv is nice:
cpx2ps -w 998 -qphase -z200 -- cpxint.raw
To plot the phase of a hgt file, first create a tmp file with the program hgt2file (hgtfile infile linelength tmpfile [ampflag]). Next, run cpx2ps with appropriate flags for a float file, e.g. (Note that this limits some options in scaling etc.):
cpx2ps -w 998 -crainbow -fr4 -- tmpfile
π BUGS:
When mirroring and multilooking/subsampling sometimes the number of lines/pixels of the output is computed incorrectly. Simply don't use multilooking/subsampling... π
Please mail bugs/comments to kampes@geo.tudelft.nl
π SEE ALSO:
cpxfiddle, GMT
π SEE ALSO π
The full documentation for cpx2ps is maintained as a Texinfo manual. If the info and cpx2ps programs are properly installed at your site, the command
info cpx2ps
should give you access to the complete manual. π§
and that's the whole vibe bestie π«Ά this lil page is signed off as cpx2ps v2.1, FMR software, Be... and dated September 2017 β go forth and plot those eps codes, you absolute icon πβ¨
π¦ where this page comes from
- debian bookworm: doris 5.0.3~beta+dfsg-16 Β· GPL-3.0-or-later
- debian trixie: doris 5.0.3~beta+dfsg-18 Β· GPL-3.0-or-later
- ubuntu jammy: doris 5.0.3~beta+dfsg-16 Β· GPL-3.0-or-later
- ubuntu noble: doris 5.0.3~beta+dfsg-17 Β· GPL-3.0-or-later
- ubuntu questing: doris 5.0.3~beta+dfsg-18build1
- ubuntu resolute: doris 5.0.3~beta+dfsg-19build1 Β· GPL-3.0-or-later
- ubuntu stonking: doris 5.0.3~beta+dfsg-19build1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms