Debian Codegraph @

stdred/ccdred/proc/ccdmean.prg

raw
1 ! @(#)ccdmean.prg 19.1 (ESO-DMD) 02/25/03 14:16:01
2 !+++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 !.COPYRIGHT (C) 1993 European Southern Observatory
4 !.IDENT ccdmean.prg
5 !.AUTHOR Rein H. Warmels, ESO-Garching
6 !.KEYWORDS Direct imaging, CCD package
7 !.PURPOSE Compute the mean of an image and write in the descriptor
8 !.USE @s ccdmean p1
9 !. p1 = input image;
10 !.METHOD Use statistics/image
11 !.VERSION 930417 RHW Creation
12 ! 980519 SW MEAN has to be stored in CCDMEAN , too (swolf@)
13 !-------------------------------------------------------
14 DEFINE/PARAM P1 ? I "Enter input image [no default]:"
15 !
16 ! *** Check if trimming has already been applied
17 IF M$EXISTD(P1,"CCDMEAN") .EQ. 1 THEN
18 CCDMEAN = {{P1},CCDMEAN} ! store in global keyword, too
19 RETURN
20 ENDIF
21 !
22 ! *** return if only listing is wanted
23 IF SC_PROC .EQ. "yes" THEN
24 WRITE/OUT "<CCDMEAN> {P1}: ***TO BE DONE*** Find mean value of the image"
25 RETURN
26 ENDIF
27 !
28 STATISTIC/IMAGE {P1} {IM_SEC} ? ? SN ! get the mean
29 COPY/KD OUTPUTR/R/3/1 {P1} CCDMEAN/R/1/1 ! store in descriptor
30 CCDMEAN = {{P1},CCDMEAN} ! store in global keyword, too
31 RETURN
32
33