1
!+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2
!.IDENTIFICATION: intell.prg
3
!.PURPOSE: Integrate pixel intensities within ellipse in 2-D image
4
!.USE: INTEGR/ELLIPS P1 P2 P3
6
! P2 = ellipse parameters: center X, center Y,
7
! semi-major diameter, semi-minor diameter,
8
! position angle (degrees, 0 on X-axis, incr tow Y-axis)
9
! P3 = flag: 1 = ellipse parameters read from
10
! descriptor ELLPAR according to P2
11
!.NOTE: Descriptor ELLPAR updated with flux in 6th element
13
!--------------------------------------------------------------------------
14
define/param p1 ? IMA "Enter input image"
15
define/param p2 {morph(1:50)} N "Ellipse center X,Y, semidiams, posangle:"
16
define/param p3 0 N "Flag (1=ellipse params in descr ELLPAR):"
18
write/keyw in_a {p1} !write inframe into IN_A
20
write/keyw inputr/r/1/5 {p2} !write ellipse parameters
21
write/keyw morph/c/1/50 {p2}
23
write/keyw inputi/i/1/1 {p3} !write flag