Scroll to navigation

CPX2PS(1) User CPX2PS(1)

NAME

cpx2ps - Produce various eps codes from complex data files.

DESCRIPTION

cpx2ps v2.1, FMR software, Bert Kampes, (c)1999-2000 \n

+++ WARNING: infile missing

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:
of complexfile in complex pixels
of complex input file. ci2|cr4|cr8 (cr4 is default) r4 now also possible, though it limites other options. do not use subsampling, mirroring etc, file is cat-ed.
what is to be computed mag|phase|real|imag|normal (mag is default)
compute scale*output^exp
compute scale*output^exp
cut out complexfile from firstline
cut out complexfile up to lastline

-p firstpixel cut out complexfile from firstpixel

cut out complexfile up to lastpixel
mirror option.
multilook factor in X/Y direction
subsample Factor in X/Y direction
GMT options:
title to plot (one word only for now) default no title
if -q mag then gray table is default if -q other then gray table is default
add a scale bar (psscale)
continuous color table (grd2cpt)
Leave postscript file open after last call to GMT
largest size of paper
Place UNIX time stamp and filename in output
General options:
Do not call gv to view result.
output postscript file, default=23812.eps (pid)
output grd file, default=23812.eps (pid) If specified, file is not removed at end If file exists, prompted for reuse.
output cpt file, default=23812.cpt (pid) If specified, file is not removed at end If file exists, prompted for reuse.
give verbose information
this help
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

+++ WARNING: infile missing

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:
of complexfile in complex pixels
of complex input file. ci2|cr4|cr8 (cr4 is default) r4 now also possible, though it limites other options. do not use subsampling, mirroring etc, file is cat-ed.
what is to be computed mag|phase|real|imag|normal (mag is default)
compute scale*output^exp
compute scale*output^exp
cut out complexfile from firstline
cut out complexfile up to lastline

-p firstpixel cut out complexfile from firstpixel

cut out complexfile up to lastpixel
mirror option.
multilook factor in X/Y direction
subsample Factor in X/Y direction
GMT options:
title to plot (one word only for now) default no title
if -q mag then gray table is default if -q other then gray table is default
add a scale bar (psscale)
continuous color table (grd2cpt)
Leave postscript file open after last call to GMT
largest size of paper
Place UNIX time stamp and filename in output
General options:
Do not call gv to view result.
output postscript file, default=23819.eps (pid)
output grd file, default=23819.eps (pid) If specified, file is not removed at end If file exists, prompted for reuse.
output cpt file, default=23819.cpt (pid) If specified, file is not removed at end If file exists, prompted for reuse.
give verbose information
this help
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.

September 2017 cpx2ps v2.1, FMR software, Bert Kampes, (c)1999-2000 0