How to use sextractor?

406 views
Skip to first unread message

Toni Šarić

unread,
May 4, 2022, 5:19:26 PM5/4/22
to astrometry
I have read astrometry.net readme file, and it says to use source extractor one need to only add --use-source-extractor to command in command line.
I tried, and it failed:
solve-field --use-source-extractor Test.fits
Reading input file 1 of 1: "Test.fits"...
Extracting sources...
/bin/sh: source-extractor: command not found
augment-xylist.c:591:backtick Failed to run command: source-extractor -PARAMETERS_NAME /tmp/tmp.param.6xqBNZ -FILTER_NAME /tmp/tmp.filter.PnMR8r -CATALOG_TYPE FITS_1.0 -CATALOG_NAME /tmp/tmp.xyls.XeAi02 Test.fits
 ioutils.c:564:run_command_get_outputs Command not found: source-extractor -PARAMETERS_NAME /tmp/tmp.param.6xqBNZ -FILTER_NAME /tmp/tmp.filter.PnMR8r -CATALOG_TYPE FITS_1.0 -CATALOG_NAME /tmp/tmp.xyls.XeAi02 Test.fits

It also says if one wants to override any of the setting astrometry use, then one needs to :
$ solve-field --use-source-extractor --source-extractor-config <se.conf>.

But I just want to run sextractor on default settings

Dustin Lang

unread,
May 5, 2022, 3:53:07 AM5/5/22
to Toni Šarić, astrometry
You need to install source extractor (the error message says command not found) 

--
You received this message because you are subscribed to the Google Groups "astrometry" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astrometry+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/astrometry/44fb8919-5f0c-43a0-9969-66679c3f6cb1n%40googlegroups.com.

Toni Šarić

unread,
May 16, 2022, 7:22:06 AM5/16/22
to astrometry
Thanks Dustin, as always.

Toni Šarić

unread,
May 25, 2022, 10:13:31 AM5/25/22
to astrometry
I installed source-extractor via homebrew for mac, and I verify that it is installed and working by running a command "sex image.fits" in terminal, but at first I needed to copy default.* files to the same directory as image is located, and it works.

But the problem is, I could't run sextractor with astrometry. I have tried in two different ways:
1. solve-field "image.fits" source-extractor-config "/opt/homebrew/Cellar/sextractor/2.25.0/share/sextractor/default.sex"
and it failed with:
Extracting sources... /bin/sh: source-extractor: command not found augment-xylist.c:591:backtick Failed to run command: source-extractor -c /opt/homebrew/Cellar/sextractor/2.25.0/share/sextractor/default.sex -CATALOG_TYPE FITS_1.0 -CATALOG_NAME /tmp/tmp.xyls.X8NT3W image.fits

2. solve-field "image.fits" --use-source-extractor
Reading input file 1 of 1: "image.fits"... Extracting sources... /bin/sh: source-extractor: command not found augment-xylist.c:591:backtick Failed to run command: source-extractor -PARAMETERS_NAME /tmp/tmp.param.UyG8wz -FILTER_NAME /tmp/tmp.filter.72c55Z -CATALOG_TYPE FITS_1.0 -CATALOG_NAME /tmp/tmp.xyls.xkkClQ image.fits

Toni Šarić

unread,
May 25, 2022, 10:51:37 AM5/25/22
to astrometry
I managed to do it,
just needed to add location of SE executable:
--source-extractor-path "/opt/homebrew/Cellar/sextractor/2.25.0/bin/sex"

Dustin Lang

unread,
May 25, 2022, 11:53:47 AM5/25/22
to Toni Šarić, astrometry
Yeah, some distributions (eg, debian/ubuntu) changed the name of the installed executable because it is so bad.


Reply all
Reply to author
Forward
0 new messages