public software.sextractor

[/] [trunk/] [src/] [photom.h] - Blame information for rev 235

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 233 bertin
/*
2
*                               photom.h
3 2 bertin
*
4 233 bertin
* Include file for photom.c.
5 2 bertin
*
6 233 bertin
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
7 2 bertin
*
8 233 bertin
*       This file part of:      SExtractor
9 2 bertin
*
10 235 bertin
*       Copyright:              (C) 1993-2010 Emmanuel Bertin -- IAP/CNRS/UPMC
11 2 bertin
*
12 233 bertin
*       License:                GNU General Public License
13
*
14
*       SExtractor is free software: you can redistribute it and/or modify
15
*       it under the terms of the GNU General Public License as published by
16
*       the Free Software Foundation, either version 3 of the License, or
17
*       (at your option) any later version.
18
*       SExtractor is distributed in the hope that it will be useful,
19
*       but WITHOUT ANY WARRANTY; without even the implied warranty of
20
*       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
*       GNU General Public License for more details.
22
*       You should have received a copy of the GNU General Public License
23
*       along with SExtractor. If not, see <http://www.gnu.org/licenses/>.
24
*
25
*       Last modified:          11/10/2010
26
*
27
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
28 2 bertin
 
29
/*----------------------------- Internal constants --------------------------*/
30
 
31
#define APER_OVERSAMP   5       /* oversampling in each dimension (MAG_APER) */
32
#define KRON_NSIG       3*MARGIN_SCALE  /* MAG_AUTO analysis range (number */
33
                                        /* of sigma) */
34
#define PETRO_NSIG      3*MARGIN_SCALE  /* MAG_PETRO analysis range (number */
35
                                        /* of sigma) */
36
#define CROWD_THRESHOLD 0.1     /* The OBJ_CROWDED flag is set if photometric*/
37
                                /* contamination may exceed this fraction of */
38
                                /* flux */
39
 
40
/* NOTES:
41
One must have:  APER_OVERSAMP >= 1
42
                KRON_NSIG > 0.0
43
                PETRO_NSIG > 0.0
44
                CROWD_THRESHOLD >= 0
45
*/
46
 
47
/*------------------------------- functions ---------------------------------*/
48
extern void     computeaperflux(picstruct *, picstruct *, objstruct *, int),
49
                computeautoflux(picstruct *, picstruct *, picstruct *,
50
                        picstruct *, objstruct *),
51
                computeisocorflux(picstruct *, objstruct *),
52
                computemags(picstruct *, objstruct *),
53
                computepetroflux(picstruct *, picstruct *, picstruct *,
54
                                picstruct *, objstruct *);