blob: b9a324fd8e30254a4aa37d9c1d4afc5e791acfe7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
.help txsort Aug91 noao.digiphot.ptools
.ih
NAME
txsort -- sort a list of APPHOT/DAOPHOT text database file(s)
.ih
USAGE
txsort textfile field
.ih
PARAMETERS
.ls textfiles
The input APPHOT/DAOPHOT text database(s) to be sorted.
The sort is performed in place.
.le
.ls field
The field to be sorted on. \fIField\fR may be any quantity defined by
the APPHOT/DAOPHOT #K and #N keywords. The keywords may be
of type integer or real, in which case a numeric sort is performed,
boolean, in which case the boolean constant "no" has a smaller value
than "yes", or character in which case an alphabetic sort is performed.
.le
.ls ascend = yes
Sort in increasing value order.
.le
.ih
DESCRIPTION
TXSORT is a simple task which accepts a list of APPHOT/DAOPHOT text
database files
and sorts them in place based on the value of the selected field
specifier \fIfield\fR. By default the sort is performed in increasing order
of the value
of \fIfield\fR, but a reverse sort can be performed by
setting \fIascend\fR = "no".
If \fIfield\fR is a real or integer quantity the sort is numeric; if boolean
the boolean constant "no" is assumed to have a smaller value than "yes"; if
character the sort is alphabetic.
.ih
EXAMPLES
1. Sort the output of the APPHOT task PHOT in increasing order of
the y position.
.nf
pt> txsort m92.mag.1 YCENTER
.fi
2. Sort the output of the DAOPHOT task ALLSTAR in increasing order of
magnitude.
.nf
pt> txsort m92.al.1 MAG
.fi
.ih
TIME REQUIREMENTS
.ih
BUGS
.ih
SEE ALSO
ptools.tbsort,tables.tsort,ptools.psort,sort
.endhelp
|