1
! @(#)irsbadpix.prg 19.1 (ES0-DMD) 02/25/03 14:23:28
2
!+++++++++++++++++++++++++++++++++++++++++++++++++++++++
4
!.COPYRIGHT (C) 1992 European Southern Observatory
6
!.AUTHOR E. Oliva, Firenze, Arcetri
7
!.KEYWORDS Spectroscopy, IRSPEC
8
!.PURPOSE Execute command BADPIX/IRSPEC which modify badpixels
9
! with coordinates stored in a ref. table
10
! The operation (modification) is performed by
12
!.VERSION 1.0 Creation 02.09.1992 E. Oliva
14
!-------------------------------------------------------
16
! Tested september 3 1992 O.K. Tino.
18
crossref in out load clean debug ref
19
def/param p1 ? cha "Input irspec image ? : "
20
def/param p2 ? ima "Output image ? : "
21
def/param p3 0 num "Load option (>0=yes)"
22
def/param p4 a cha "Direction option (x, y, b or a) : "
23
def/param p5 0 num "Debug option "
24
def/param p6 'badpix' cha "Reference table"
26
def/loc incmd/c/1/132 "{MID$LINE}"
28
! global keys used : Iscale, badpix
36
write/out "Output and input frames cannot have the same names"
40
if 'p3' .gt. 0 load &bpx scale='Iscale'
46
run STD_EXE:irsbadpix.exe
48
if 'p3' .gt. 0 load 'p2' scale='Iscale'
49
copy/kd incmd/c/1/132 'p2' history/c/-1/132