IMSEX script to use SExtractor to find stars in FITS images
[x pixel center] [y pixel center] [instrument magnitude]
CATALOG_NAME image.sex # name of the output catalog CATALOG_TYPE ASCII_HEAD # "ASCII_HEAD","ASCII","FITS_1.0" or "FITS_LDAC" PARAMETERS_NAME daofind.param # name of the file containing catalog contentsOther 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
X_IMAGE Y_IMAGE MAG_BESTThe default.nnw and default.conv files do not need to be changed.
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 200creates 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.