blob: 3a9fbeba4309ec3b906ffa7d510d3b671febac5f (
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
|
include "ccdtypes.h"
# CCDNSCAN -- Return the number CCD scan rows.
#
# If not found in the header return the "nscan" parameter for objects and
# 1 for calibration images.
int procedure ccdnscan (im, ccdtype)
pointer im #I Image
int ccdtype #I CCD type
int nscan #O Number of scan lines
bool clgetb()
char type, clgetc()
int hdmgeti(), clgeti()
begin
iferr (nscan = hdmgeti (im, "nscanrow")) {
switch (ccdtype) {
case ZERO, DARK, FLAT, ILLUM, FRINGE:
nscan = 1
default:
type = clgetc ("scantype")
if (type == 's')
nscan = clgeti ("nscan")
else {
if (clgetb ("scancor"))
nscan = INDEFI
else
nscan = 1
}
}
}
return (nscan)
end
|