summaryrefslogtreecommitdiffstats
path: root/funtools/doc/regdiff.html
blob: 29c9658218b03115f29f400212632284ec030fa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!-- =defdoc regdiff regdiff n -->
<HTML>
<HEAD>
<TITLE>Differences Between Funtools and IRAF Regions</TITLE>
</HEAD>
<BODY>

<!-- =section regdiff NAME -->
<H2><A NAME="regdiff">RegDiff:Differences Between Funtools and IRAF Regions</A></H2>

<!-- =section regdiff SYNOPSIS -->
<H2>Summary</H2>
Describes the differences between Funtools/ds9 regions and the old IRAF/PROS
regions.

<!-- =section regdiff DESCRIPTION -->
<H2>Description</H2>
<P>
We have tried to make Funtools regions compatible with their
predecessor, IRAF/PROS regions. For simple regions and simple boolean
algebra between regions, there should be no difference between the two
implementations.  The following is a list of differences and
incompatibilities between the two:

<UL>

<P>
<LI>If a pixel is covered by two different regions expressions,
Funtools assigns the mask value of the <B>first</B> region that
contains that pixel.  That is, successive regions <B>do not</b>
overwrite previous regions in the mask, as was the case with the
original PROS regions.  This means that one must define overlapping
regions in the reverse order in which they were defined in PROS.  If
region N is fully contained within region M, then N should be defined
<B>before</B> M, or else it will be "covered up" by the latter. This
change is necessitated by the use of optimized filter compilation, i.e.,
Funtools only tests individual regions until a proper match is made.

<P>
<LI> The <B>PANDA</B> region has replaced the old PROS syntax in which
a <B>PIE</B> accelerator was combined with an <B>ANNULUS</B> accelerator
using <B>AND</B>. That is,
<PRE>
  ANNULUS(20,20,0,15,n=4) & PIE(20,20,0,360,n=3)
</PRE>
has been replaced by:
<PRE>
  PANDA(20,20,0,360,3,0,15,4)
</PRE>
The PROS syntax was inconsistent with the meaning of the <B>AND</B> operator.

<P>
<LI> The meaning of pure numbers (i.e., without format specifiers) in 
regions has been clarified, as has the syntax for specifying coordinate
systems. See the general discussion on
<A HREF="./regions.html">Spatial Region Filtering</A>
for more information.

</UL>

<!-- =section regdiff SEE ALSO -->
<!-- =text See funtools(n) for a list of Funtools help pages -->
<!-- =stop -->

<P>
<A HREF="./help.html">Go to Funtools Help Index</A>

<H5>Last updated: November 16, 2005</H5>

</BODY>
</HTML>