1
! @(#)ccdtestf.prg 19.1 (ES0-DMD) 02/25/03 14:17:11
2
! +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3
!.IDENTIFICATION: ccdtestf.prg
4
!.PURPOSE: Procedure to test the ccd flat field characteristics
5
!.AUTHOR: Rein H. Warmels
7
!. where p1 = input catalogue containing the ccd bias frames
8
!. p2 = output identifier [flat]
9
!. p3 = method for computing the combined flat
11
!. p5 = range of exposure times to be combined:"
12
!. p6 = threshold for determining the cold pixels.
13
!.USE: @@ ccdtestf p1 p2 p3 p5 p5 p6
14
!.Algorithm: The following tests are done:
15
! Test F1: Creating of the combined master flat frame"
16
! All frames in the input flat catalogue are combined
17
! using the {P4} method. A printout of the combined
19
! Test F2: Creating a cold pixel table.
20
! First the combined flat is corrected for the bias
21
! offset. Therafter all pixels in the stacked master
22
! flat frame that show values less than {p6} times the
23
! median counts in the frame are listed. Only pixels
24
! within the area {p5} are considered and repetitions
25
! of cold pixels in the increasing y coordinate are
27
!.VERSION: 940620 RHW creation
28
!.VERSION: 950813 RHW Split is single procedures
29
! +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
30
DEFINE/PARAMETER P1 ? C "Enter input catalogue:"
31
DEFINE/PARAMETER P2 FLAT C "Enter combined output frame:"
32
DEFINE/PARAMETER P3 median C "Enter combining method:"
33
DEFINE/PARANETER P4 [<,<:>,>] C "Enter area for median filtering:"
34
DEFINE/PARAMETER P5 0,5 N "Enter exposure time range:"
35
DEFINE/PARAMETER P6 5.0 N "Enter sigma multiplier for cold pixels:"
37
! *** check if the catalogue exists
38
IF M$EXIST(P1) .EQ. 0 THEN
39
WRITE/OUT "*** FATAL <CCDTESTF>: Catalogue {P1} not existing"
47
@s ccdtestf1 {p1} {p2} {p3} {p4} {p5} ?
48
@s ccdtestf2 {p2} {p2} {p4} {p6} ?