Debian Codegraph @

gui/XIrspec/proc/irsskyfit.prg

raw
1 ! @(#)irsskyfit.prg 19.1 (ES0-DMD) 02/25/03 13:47:33
2 ! @(#)irsskyfit.prg 19.1 (ESO-ASD) 02/25/03 13:47:33
3 !+++++++++++++++++++++++++++++++++++++++++++++++++++++++
4 !.COPYRIGHT (C) 1993 European Southern Observatory
5 !.IDENT irsskyfit.prg
6 !.AUTHORS Pascal Ballester (ESO/Garching)
7 ! Cristian Levin (ESO/La Silla)
8 !.KEYWORDS XIrspec
9 !.PURPOSE
10 ! Fit polynomial of degree DEGREE to selected rows in every
11 ! column of a frame. May be used to fit the sky background of
12 ! a long-slit spectrum.
13 ! It uses the algorithm of the command FIT_SKY/SPEC, adding the
14 ! the following feature:
15 ! filter the cosmics defined as pixels whose values are
16 ! THRESHOLD times the standard deviation above the median
17 ! average on pixels within RADIUS (taking into account
18 ! the RON and the conversion factor)
19 !
20 ! Command:
21 ! @g irsskyfit OUT IN A1,A2,B1,B2 DEGREE MODE ADUPARS RADIUS
22 ! where ADUPARS = conversion factor(e-/ADU), RON(ADU), threshold
23 !
24 !.VERSION 1.0 Package Creation 17-MAR-1993
25 ! Original version: ESO-IPG SEP91
26 ! Modified version: A.Smette MAY92
27 !-------------------------------------------------------
28 !
29 DEFINE/PARA P1 ? I "input frame?"
30 DEFINE/PARA P2 ? I "output frame?"
31 DEFINE/PARA P3 ? N "limits (a1,a2,b1,b2) in pixels?"
32 DEFINE/PARA P4 ? N "order of the fit?"
33 DEFINE/PARA P5 ? N "mode 0 or 1?"
34 DEFINE/PARA P6 ? N "conversion factor(e-/ADU), RON(ADU), threshold?"
35 DEFINE/PARA P7 ? N "radius?"
36
37 WRITE/KEY OUT_A 'P2'
38 WRITE/KEY IN_A 'P1'
39 WRITE/KEY INPUTI/I/1/4 'P3'
40 WRITE/KEY INPUTI/I/5/1 'P4'
41 WRITE/KEY INPUTI/I/6/1 'P5'
42 WRITE/KEY INPUTI/I/7/1 'P7'
43 WRITE/KEY INPUTR/R/1/3 'P6'
44
45 write/out "Processing..."
46 run STD_EXE:spskyfit
47 write/out "Done."