aboutsummaryrefslogtreecommitdiff
path: root/sys/imio/tf/imupks.x
blob: 93d0ad3fa7cbeb000f88e792f8e018b72963695a (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
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.

# IMUPK? -- Convert an array of pixels of datatype DTYPE into the datatype
# specified by the IMUPK? suffix character.

procedure imupks (a, b, npix, dtype)

short	b[npix]
int	a[npix], npix, dtype

pointer	bp

begin
	switch (dtype) {
	case TY_USHORT:
	    call achtus (a, b, npix)
	case TY_SHORT:
	    call achtss (a, b, npix)
	case TY_INT:
	    call achtis (a, b, npix)
	case TY_LONG:
	    call achtls (a, b, npix)
	case TY_REAL:
	    call achtrs (a, b, npix)
	case TY_DOUBLE:
	    call achtds (a, b, npix)
	case TY_COMPLEX:
	    call achtxs (a, b, npix)
	default:
	    call error (1, "Unknown datatype in imagefile")
	}
end