OS Manuals

/usr/bin/cct

From proj-util 9.9.0-r0 (os), captured 2026-11-05 by running cct --help (exit 0). permalink

--------------------------------------------------------------------------------
Usage: cct [-options]... [+operator_specs]... infile...
--------------------------------------------------------------------------------
Options:
--------------------------------------------------------------------------------
    -c x,y,z,t        Specify input columns for (up to) 4 input parameters.
                      Defaults to 1,2,3,4
    -d n              Specify number of decimals in output.
    -I                Do the inverse transformation
    -o /path/to/file  Specify output file name
    -t value          Provide a fixed t value for all input data (e.g. -t 0)
    -z value          Provide a fixed z value for all input data (e.g. -z 0)
    -s n              Skip n first lines of a infile
    -v                Verbose: Provide non-essential informational output.
                      Repeat -v for more verbosity (e.g. -vv)
--------------------------------------------------------------------------------
Long Options:
--------------------------------------------------------------------------------
    --output          Alias for -o
    --columns         Alias for -c
    --decimals        Alias for -d
    --height          Alias for -z
    --time            Alias for -t
    --verbose         Alias for -v
    --inverse         Alias for -I
    --skip-lines      Alias for -s
    --help            Alias for -h
    --version         Print version number
--------------------------------------------------------------------------------
Operator Specs:
--------------------------------------------------------------------------------
The operator specs describe the action to be performed by cct, e.g:

        +proj=utm  +ellps=GRS80  +zone=32

instructs cct to convert input data to Universal Transverse Mercator, zone 32
coordinates, based on the GRS80 ellipsoid.

Hence, the command

        echo 12 55 | cct -z0 -t0 +proj=utm +zone=32 +ellps=GRS80

Should give results comparable to the classic proj command

        echo 12 55 | proj +proj=utm +zone=32 +ellps=GRS80
--------------------------------------------------------------------------------
Examples:
--------------------------------------------------------------------------------
1. convert geographical input to UTM zone 32 on the GRS80 ellipsoid:
    cct +proj=utm +ellps=GRS80 +zone=32
2. roundtrip accuracy check for the case above:
    cct +proj=pipeline +ellps=GRS80 +zone=32 +step +proj=utm \
        +step +proj=utm +inv
3. as (1) but specify input columns for longitude, latitude, height and time:
    cct -c 5,2,1,4  +proj=utm +ellps=GRS80 +zone=32
4. as (1) but specify fixed height and time, hence needing only 2 cols in input:
    cct -t 0 -z 0  +proj=utm  +ellps=GRS80  +zone=32
--------------------------------------------------------------------------------
Options (18)
OptionDescriptionSource
-c xSpecify input columns for (up to) 4 input parameters.help + man
-d nSpecify number of decimals in output.help + man
-IDo the inverse transformation.help + man
-o /path/to/fileSpecify the name of the output file.help + man
-t valueSpecify a fixed observation time to be used for all input data.help + man
-z valueSpecify a fixed observation height to be used for all input data.help + man
-s nSkip n first lines of a infilehelp + man
-vWrite non-essential, but potentially useful, information to stderr.help + man
--outputAlias for -ohelp
--columnsAlias for -chelp
--decimalsAlias for -dhelp
--heightAlias for -zhelp
--timeAlias for -thelp
--verboseAlias for -vhelp
--inverseAlias for -Ihelp
--skip-linesAlias for -shelp
--helpAlias for -hhelp
--versionPrint version number.help + man
Examples (10) from the manual page, untested

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.