astromatic / sextractor

Extract catalogs of sources from astronomical images
http://astromatic.net/software/sextractor
GNU General Public License v3.0
148 stars 43 forks source link

> *Error*: SOM file not found: default.som #50

Open jiminlee728 opened 1 year ago

jiminlee728 commented 1 year ago

I installed source extractor using brew on Mac. I am trying to use with the default configuration files, but error appears. Fitting model: background offset+point source+Sersic spheroid+exponential disk

Reading Neural Network Weights Error: SOM file not found: default.som

I don't see any som file except som.h and som.c in src file neither in my directory or the git repository. Is there anyone had same problems or know how to solve?

kirxkirx commented 1 year ago

Try removing the line

SOM_NAME         default.som    # File containing Self-Organizing Map weights

from your SExtractor configuration file (probably the one named default.sex).

jiminlee728 commented 1 year ago

I already don't have it in default.sex.

-------------------------------- WEIGHTing ----------------------------------

WEIGHT_TYPE NONE # type of WEIGHTing: NONE, BACKGROUND,

MAP_RMS, MAP_VAR or MAP_WEIGHT

WEIGHT_IMAGE weight.fits # weight-map filename

This is all under WEIGHTing. I tried to add that line in the file but also not working

kirxkirx commented 1 year ago

OK, than maybe you have some parameters ending with _SOMFIT in the output configuration file default.param? If this is the case - maybe try removing/commenting them out?

jiminlee728 commented 1 year ago

It works!! Thank you