| Line 5... |
Line 5... |
*
|
*
|
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
*
|
*
|
* This file part of: SExtractor
|
* This file part of: SExtractor
|
*
|
*
|
* Copyright: (C) 1993-2010 Emmanuel Bertin -- IAP/CNRS/UPMC
|
* Copyright: (C) 1993-2011 Emmanuel Bertin -- IAP/CNRS/UPMC
|
*
|
*
|
* License: GNU General Public License
|
* License: GNU General Public License
|
*
|
*
|
* SExtractor is free software: you can redistribute it and/or modify
|
* SExtractor is free software: you can redistribute it and/or modify
|
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
| Line 20... |
Line 20... |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
* along with SExtractor. If not, see <http://www.gnu.org/licenses/>.
|
* along with SExtractor. If not, see <http://www.gnu.org/licenses/>.
|
*
|
*
|
* Last modified: 11/10/2010
|
* Last modified: 09/01/2011
|
*
|
*
|
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
|
|
/* Check if we are using a configure script here */
|
/* Check if we are using a configure script here */
|
#ifndef HAVE_CONFIG_H
|
#ifndef HAVE_CONFIG_H
|
| Line 36... |
Line 36... |
/*------------------------ what, who, when and where ------------------------*/
|
/*------------------------ what, who, when and where ------------------------*/
|
|
|
#define BANNER "SExtractor"
|
#define BANNER "SExtractor"
|
#define MYVERSION VERSION
|
#define MYVERSION VERSION
|
#define EXECUTABLE "sex"
|
#define EXECUTABLE "sex"
|
#define COPYRIGHT "2010 IAP/CNRS/UPMC"
|
#define COPYRIGHT "2011 IAP/CNRS/UPMC"
|
#define DISCLAIMER BANNER " comes with ABSOLUTELY NO WARRANTY\n" \
|
#define DISCLAIMER BANNER " comes with ABSOLUTELY NO WARRANTY\n" \
|
"You may redistribute copies of " BANNER "\n" \
|
"You may redistribute copies of " BANNER "\n" \
|
"under the terms of the GNU General Public License."
|
"under the terms of the GNU General Public License."
|
#define AUTHORS "Emmanuel BERTIN <bertin@iap.fr>"
|
#define AUTHORS "Emmanuel BERTIN <bertin@iap.fr>"
|
#define WEBSITE "http://astromatic.net/software/sextractor"
|
#define WEBSITE "http://astromatic.net/software/sextractor"
|
| Line 138... |
Line 138... |
}
|
}
|
|
|
/*------------------------------- Other Macros -----------------------------*/
|
/*------------------------------- Other Macros -----------------------------*/
|
|
|
#define DEXP(x) exp(2.30258509299*(x)) /* 10^x */
|
#define DEXP(x) exp(2.30258509299*(x)) /* 10^x */
|
|
#define DEXPF(x) expf(2.30258509299f*(x)) /* 10^x */
|
|
|
#define QFREAD(ptr, size, afile, fname) \
|
#define QFREAD(ptr, size, afile, fname) \
|
if (fread(ptr, (size_t)(size), (size_t)1, afile)!=1) \
|
if (fread(ptr, (size_t)(size), (size_t)1, afile)!=1) \
|
error(EXIT_FAILURE, "*Error* while reading ", fname)
|
error(EXIT_FAILURE, "*Error* while reading ", fname)
|
|
|