% -----------------------------------------------------------------------
% app-casa.tex: Example output region file for CASA
% -----------------------------------------------------------------------
% Copyright (C) 2006, Matthew Whiting, ATNF
%
% This program is free software; you can redistribute it and/or modify it
% under the terms of the GNU General Public License as published by the
% Free Software Foundation; either version 2 of the License, or (at your
% option) any later version.
%
% Duchamp is distributed in the hope that it will be useful, but WITHOUT
% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
% FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
% for more details.
%
% You should have received a copy of the GNU General Public License
% along with Duchamp; if not, write to the Free Software Foundation,
% Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
%
% Correspondence concerning Duchamp may be directed to:
%    Internet email: Matthew.Whiting [at] atnf.csiro.au
%    Postal address: Dr. Matthew Whiting
%                    Australia Telescope National Facility, CSIRO
%                    PO Box 76
%                    Epping NSW 1710
%                    AUSTRALIA
% -----------------------------------------------------------------------
\secA{Example CASA Region file output}
\label{app-casa}

This is the format of the CASA region file, showing the locations
of the detected objects. This can be loaded in casapy, and should be
able to be used in the casaviewer image viewer (once that
functionality is made available)

\begin{verbatim}
#CRTFv0
# Duchamp Source Finder v.1.3.2
# Results for FITS file: /home/mduchamp/fountain.fits
# imageFile              /home/mduchamp/fountain.fits
# flagSubsection         0
# flagStatSec            0
# searchType             spectral
# flagNegative           0
# flagBaseline           0
# flagRobustStats        0
# flagFDR                0
# snrCut                 5
# flagGrowth             1
# growthCut              3
# minVoxels              7
# minPix                 5
# minChannels            3
# flagAdjacent           1
# threshVelocity         7
# flagRejectBeforeMerge  0
# flagTwoStageMerging    0
# pixelCentre            centroid
# flagSmooth             0
# flagATrous             0
# Detection threshold used = 0.0693069
# Mean of noise background = 0.000421091
# Std. Deviation of noise background = 0.0137772
global color=red, coord=J2000 
#
box[[88.086891deg,-29.482756deg], [87.945344deg,-29.012892deg]], label='1'
ann ellipse[[88.053118deg,-29.283458deg], [0.272748deg,0.013333deg], 179.999776deg]
text[[88.053118deg,-29.283458deg], '1']

box[[93.194880deg,-21.870648deg], [92.542252deg,-21.480469deg]], label='2'
ann ellipse[[92.828794deg,-21.613361deg], [0.273816deg,0.235305deg], 141.808738deg]
text[[92.828794deg,-21.613361deg], '2']

box[[90.609492deg,-24.032905deg], [89.955329deg,-23.364696deg]], label='3'
ann ellipse[[90.281318deg,-23.666887deg], [0.269583deg,0.229524deg], 91.375033deg]
text[[90.281318deg,-23.666887deg], '3']
\end{verbatim}
