7.1.164. 3dTsortΒΆ

Link to classic view

Usage: 3dTsort [options] dataset Sorts each voxel and produces a new dataset.

Options:

-prefix p = use string ‘p’ for the prefix of the
output dataset [DEFAULT = ‘tsort’]
-inc = sort into increasing order [default]
-dec = sort into decreasing order
-rank = output rank instead of sorted values
ranks range from 1 to Nvals
-ind = output sorting index. (0 to Nvals -1)
See example below.
-val = output sorted values (default)
-datum D = Coerce the output data to be stored as
the given type D, which may be byte, short, or float (default).

Notes: * Each voxel is sorted separately. * Sub-brick labels are not rearranged. * This program is useful only in limited cases.

It was written to sort the -stim_times_IM beta weights output by 3dDeconvolve.
  • Also see program 1dTsort.

Examples: setenv AFNI_1D_TIME YES echo ‘8 6 3 9 2 7’ > test.1D

3dTsort -overwrite test.1D 1dcat tsort.1D

3dTsort -overwrite -rank test.1D 1dcat tsort.1D

3dTsort -overwrite -ind test.1D 1dcat tsort.1D

3dTsort -overwrite -dec test.1D 1dcat tsort.1D

++ Compile date = Dec 16 2015

Table Of Contents

This Page