Commit ece261cd authored by Emmanuel Bertin's avatar Emmanuel Bertin
Browse files

merged with SExFIGI branch

parent 5ae55cd0
This diff is collapsed.
This diff is collapsed.
.TH SEXTRACTOR "1" "October 2006" "SWarp 2.5.0" "User Commands" .TH SEXTRACTOR "1" "November 2008" "SWarp 2.8.2" "User Commands"
.SH NAME .SH NAME
sex \- extract a source catalog from an astronomical FITS image sex \- extract a source catalog from an astronomical FITS image
.SH SYNOPSIS .SH SYNOPSIS
......
...@@ -20,7 +20,7 @@ SExtractor stands for ``Source Extractor'': a software for making catalog of sou ...@@ -20,7 +20,7 @@ SExtractor stands for ``Source Extractor'': a software for making catalog of sou
%setup -q %setup -q
%build %build
./configure --prefix=$RPM_BUILD_ROOT/usr/local/ --mandir=$RPM_BUILD_ROOT/usr/local/man/ --enable-static ./configure --prefix=$RPM_BUILD_ROOT/usr/local/ --mandir=$RPM_BUILD_ROOT/usr/local/man/ --with-xsl_url=file:///usr/local/share/@PACKAGE_NAME@/sextractor.xsl --enable-static
make make
...@@ -35,6 +35,7 @@ rm -rf $RPM_BUILD_ROOT ...@@ -35,6 +35,7 @@ rm -rf $RPM_BUILD_ROOT
/usr/local/bin/sex /usr/local/bin/sex
/usr/local/man/man1/sex.1 /usr/local/man/man1/sex.1
/usr/local/man/manx/sex.x /usr/local/man/manx/sex.x
/usr/local/share/@PACKAGE_NAME@
%doc AUTHORS BUGS ChangeLog COPYING HISTORY INSTALL README THANKS doc/README.DOC doc/sextractor.ps %doc AUTHORS BUGS ChangeLog COPYING HISTORY INSTALL README THANKS doc/README.DOC doc/sextractor.ps
%changelog %changelog
......
...@@ -8,10 +8,12 @@ Version: %{version} ...@@ -8,10 +8,12 @@ Version: %{version}
Release: %{release} Release: %{release}
Source0: ftp://ftp.iap.fr/pub/from_users/bertin/sextractor/%{name}-%{version}.tar.gz Source0: ftp://ftp.iap.fr/pub/from_users/bertin/sextractor/%{name}-%{version}.tar.gz
URL: http://terapix.iap.fr/soft/%{name} URL: http://terapix.iap.fr/soft/%{name}
License: LGPL License: GPLv3+
Group: Sciences/Astronomy Group: Sciences/Astronomy
BuildRoot: %{_tmppath}/%{name}-buildroot BuildRoot: %{_tmppath}/%{name}-buildroot
Prefix: %{_prefix} BuildRequires: pkgconfig
BuildRequires: fftw-devel >= 3.1
BuildRequires: atlas-devel >= 3.6.0
%description %description
SExtractor stands for ``Source Extractor'': a software for making catalog of sources from astronomical images. SExtractor stands for ``Source Extractor'': a software for making catalog of sources from astronomical images.
...@@ -20,26 +22,28 @@ SExtractor stands for ``Source Extractor'': a software for making catalog of sou ...@@ -20,26 +22,28 @@ SExtractor stands for ``Source Extractor'': a software for making catalog of sou
%setup -q %setup -q
%build %build
if test "$GCCFLAGS"; then if test "$USE_ICC"; then
./configure --enable-static --prefix=$RPM_BUILD_ROOT/usr/local/ --mandir=$RPM_BUILD_ROOT/usr/local/man/ %configure --enable-icc
make CFLAGS="$GCCFLAGS"
else else
./configure --prefix=$RPM_BUILD_ROOT/usr/local/ --mandir=$RPM_BUILD_ROOT/usr/local/man/ %configure
make
fi fi
make %{?_smp_mflags}
%install %install
make install rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root) %defattr(-,root,root)
/usr/local/bin/sex
/usr/local/man/man1/sex.1
/usr/local/man/manx/sex.x
%doc AUTHORS BUGS ChangeLog COPYING HISTORY INSTALL README THANKS doc/README.DOC doc/sextractor.pdf %doc AUTHORS BUGS ChangeLog COPYING HISTORY INSTALL README THANKS doc/README.DOC doc/sextractor.pdf
%{_bindir}/sex
%{_bindir}/ldactoasc
%{_mandir}/man1/sex.1*
%{_mandir}/manx/sex.x*
%{_datadir}/@PACKAGE_NAME@
%changelog %changelog
* @DATE2@ @PACKAGER@ <@PACKAGE_BUGREPORT@> * @DATE2@ @PACKAGER@ <@PACKAGE_BUGREPORT@>
......
# Program Makefile for SEx # Program Makefile for SEx
# Copyright (C) 2004-2006 Emmanuel Bertin. # Copyright (C) 2004-2008 Emmanuel Bertin.
SUBDIRS = fits wcs SUBDIRS = fits levmar wcs
bin_PROGRAMS = sex bin_PROGRAMS = sex ldactoasc
check_PROGRAMS = sex
sex_SOURCES = analyse.c assoc.c astrom.c back.c bpro.c catout.c \ sex_SOURCES = analyse.c assoc.c astrom.c back.c bpro.c catout.c \
check.c clean.c extract.c field.c filter.c \ check.c clean.c extract.c fft.c field.c filter.c \
flag.c graph.c growth.c image.c interpolate.c \ fitswcs.c flag.c graph.c growth.c image.c \
main.c makeit.c manobjlist.c misc.c neurro.c pc.c \ interpolate.c main.c makeit.c manobjlist.c misc.c \
photom.c plist.c poly.c prefs.c psf.c readimage.c \ neurro.c pattern.c pc.c photom.c plist.c prefs.c \
refine.c retina.c scan.c som.c weight.c winpos.c \ profit.c psf.c readimage.c refine.c retina.c scan.c \
xml.c \ som.c weight.c winpos.c xml.c \
assoc.h astrom.h back.h bpro.h check.h clean.h \ assoc.h astrom.h back.h bpro.h check.h clean.h \
define.h extract.h field.h filter.h flag.h \ define.h extract.h fft.h field.h filter.h fitswcs.h \
globals.h growth.h image.h interpolate.h key.h \ flag.h globals.h growth.h image.h interpolate.h \
neurro.h param.h photom.h plist.h poly.h prefs.h \ key.h neurro.h param.h paramprofit.h pattern.h \
preflist.h psf.h retina.h sexhead1.h sexhead.h \ photom.h plist.h prefs.h preflist.h profit.h psf.h \
sexheadsc.h som.h types.h weight.h winpos.h xml.h retina.h sexhead1.h sexhead.h sexheadsc.h som.h \
AM_CPPFLAGS = -DXSL_URL=\"file://$(pkgdatadir)/${PACKAGE_NAME}.xsl\" threads.h types.h wcscelsys.h weight.h winpos.h xml.h
sex_LDADD = $(top_builddir)/src/fits/libfits.a $(top_builddir)/src/wcs/libwcs_c.a ldactoasc_SOURCES = ldactoasc.c ldactoasc.h
sex_LDADD = $(top_builddir)/src/fits/libfits.a \
$(top_builddir)/src/wcs/libwcs_c.a \
$(top_builddir)/src/levmar/liblevmar.a
ldactoasc_LDADD = $(top_builddir)/src/fits/libfits.a
DATE=`date +"%Y-%m-%d"` DATE=`date +"%Y-%m-%d"`
This diff is collapsed.
This diff is collapsed.
...@@ -9,13 +9,13 @@ ...@@ -9,13 +9,13 @@
* *
* Contents: Include file for assoc.c. * Contents: Include file for assoc.c.
* *
* Last modify: 25/06/97 * Last modify: 14/10/2007
* *
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% *%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
*/ */
#define ASSOC_BUFINC 65536 /* Assoc buffer increment (bytes) */ #define ASSOC_BUFINC 131072 /* Assoc buffer increment (bytes) */
/*--------------------------------- typedefs --------------------------------*/ /*--------------------------------- typedefs --------------------------------*/
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* *
* Contents: handling of "check-images". * Contents: handling of "check-images".
* *
* Last modify: 15/12/2002 * Last modify: 18/09/2008
* *
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% *%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
*/ */
...@@ -23,7 +23,7 @@ typedef struct structcheck ...@@ -23,7 +23,7 @@ typedef struct structcheck
char *fitshead; /* ptr to check-image FITS header */ char *fitshead; /* ptr to check-image FITS header */
int fitsheadsize; /* size of check-image FITS header */ int fitsheadsize; /* size of check-image FITS header */
void *pix; /* ptr to check-image pixmap */ void *pix; /* ptr to check-image pixmap */
int width, height; /* size of check-image */ int width, height, depth; /* size of check-image */
size_t npix; /* number of pixels in check-image */ size_t npix; /* number of pixels in check-image */
int y; /* current line in check-image */ int y; /* current line in check-image */
PIXTYPE overlay; /* intensity of the overlayed plots */ PIXTYPE overlay; /* intensity of the overlayed plots */
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* Contents: functions that remove spurious detections from the * Contents: functions that remove spurious detections from the
* catalog * catalog
* *
* Last modify: 15/02/2005 * Last modify: 20/06/2007
* *
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% *%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
*/ */
...@@ -250,15 +250,6 @@ void mergeobject(objstruct *objslave,objstruct *objmaster) ...@@ -250,15 +250,6 @@ void mergeobject(objstruct *objslave,objstruct *objmaster)
*pix = colormaster; *pix = colormaster;
} }
if (FLAG(obj.flux_prof))
{
objmaster->flux_prof = (objmaster->flux_prof*objmaster->fdflux
+ objslave->flux_prof*objslave->fdflux)
/ (objmaster->fdflux + objslave->fdflux);
objmaster->fluxerr_prof = (objmaster->fluxerr_prof*objmaster->fdflux
+ objslave->fluxerr_prof*objslave->fdflux)
/ (objmaster->fdflux + objslave->fdflux);
}
objmaster->fdnpix += objslave->fdnpix; objmaster->fdnpix += objslave->fdnpix;
objmaster->dnpix += objslave->dnpix; objmaster->dnpix += objslave->dnpix;
objmaster->fdflux += objslave->fdflux; objmaster->fdflux += objslave->fdflux;
......
This diff is collapsed.
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment