1
! @(#)diffima.prg 19.1 (ESO-DMD) 02/25/03 13:20:08
2
! +++++++++++++++++++++++++++++++++++++++++++++++++
4
! MIDAS procedure diffima.prg to compare the pixels of two Midas images
7
! execute as @a diffima ima_a ima_b epsilon
9
! with ima_a, ima_b - Midas images
10
! epsilon = max. allowd diff-value (defaulted to 0.0004)
12
! if the image data are not equal, keyword OUTPUTI(10) = -1
13
! else OUTPUTI(10) = 0
15
! the difference image is stored in middummd.bdf
16
! even if we work in the FITS work environment!
20
! +++++++++++++++++++++++++++++++++++++++++++++++++
22
define/param p1 ? ima "Enter frame1: "
23
define/param p2 ? ima "Enter frame2: "
24
define/param p3 0.0004 N "Enter epsilon: "
25
define/local rk/r/1/3 0.,0.,{p3}
27
! force creation of Midas format image file
28
compute/pixel &d.bdf = {p1}-{p2}
30
statist/image &d.bdf >temp.data
31
rk(1) = m$abs(outputr(1)) !abs(minimum)
32
rk(2) = m$abs(outputr(2)) !abs(maximum)
33
if rk(1) .gt. rk(3) .or. rk(2) .gt. rk(3) then