IMSEX script to use SExtractor to find stars in FITS images

imwcs and immatch can accept catalogs of pixel positions and instrument magnitudes of stars in an image in the daofind output format
[x pixel center]   [y pixel center]   [instrument magnitude]

Setting up SExtractor

../sextractor/">SExtractor, Emmanuel Bertin's neural net program which extracts and classifies objects in an image, is parameter file driven. First we modify the default.sex file to daofind.sex:
CATALOG_NAME    image.sex       # name of the output catalog

PARAMETERS_NAME daofind.param   # name of the file containing catalog contents
Other parameters for photometry or background may be modified as necessary.

Then set the parameters you need to emulate the daofind output format in the file daofind.param, which contains simply

The default.nnw and default.conv files do not need to be changed.

Using SExtractor

The imsex shell script runs SExtractor on an image, sorts the result by magnitude, and keeps the nbrightest objects. It requires the file default.sex, rewritten to run SExtractor without having to establish local parameter files.

It can also automatically extract image extensions from multi-extension FITS files before running SExtractor on them. Returned stars are sorted from brightest to faintest, and the brightest n are written to a file named as the input file, with .sex instead of the input .fits (or whatever). If an image extension is extracted, the output files (FITS and DAO-format) have _extension name inserted before the suffix. For example, if the file multitest.fits has four image extensions with EXTNAME set in each one,

	imsex -m -n 200
creates the image files multitest_IM1.fits, multitest_IM2.fits, multitest_IM3.fits, and multitest_IM4.fits, and the SExtractor output files multitest_IM1.sex, multitest_IM2.sex, multitest_IM3.sex, and multitest_IM4.sex, with up to 200 stars each. As with all WCSTools programs, typing imsex with no arguments lists the possible arguments.

Getting SExtractor

ftp from France


SExtractor Home Page

SExtractor Users Guide [PDF] [PostScript]
SExtractor Forum

SExtractor: Software for source extraction
Bertin, E. and Arnouts, S. (1996), A&A Supp. v.117 p. 393-404.

SExtractor for Dummies

TN 0034: Some Notes on Using the New Version of Sextractor to Generate Star Lists From TASS Images
Glenn Gombert

Last updated 10 November 2009 by Doug Mink

[Telescope Data Center] [WCS programs] [IMWCS] [IMMATCH]