Unble to solve

87 views
Skip to first unread message

tano...@gmail.com

unread,
Sep 28, 2023, 7:50:21 AM9/28/23
to astrometry
Hello
I built my indexes in order to have an RGB star catalog. I followed the guide on the website (http://astrometry.net/doc/build-index.html)
When I try to solve an image, my local version of astrometry is not able to solve it and in the .out file I find this error

Sorting brightness using MAG_AUTO and BACKGROUND columns failed; falling back to MAG_AUTO.
Reading sort column "MAG_AUTO"
Sorting sort column
mmapping input file
Copying table header.
Writing row 0
Done
Solving...
engine.c:310:engine_parse_config_file_stream: Didn't understand this config file line: "rgb_index_04-11.fits"
Failed to parse (or encountered an error while interpreting) config file "/home/s5lab/anaconda3/envs/fate_env/etc/astrometry_rgb.cfg"
solve-field.c:519:run_engine engine failed.  Command that failed was:
  /home/s5lab/anaconda3/envs/fate_env/bin/astrometry-engine --config /home/s5lab/anaconda3/envs/fate_env/etc/astrometry_rgb.cfg /home/s5lab/Research/Images/GEO/SURGE/2023_09_10_SURGE/Raw_20230910T205001_20230910T205715_800-01s-2-135mm_6DEmanuelle/PNG/Out/Raw_20230910T205001_800-01s-2-135mm_6DEmanuelle.axy
 ioutils.c:568:run_command_get_outputs Command failed: return value 255


What kind of error is this?
Thank you for your answers 

Gaetano

Dustin Lang

unread,
Sep 28, 2023, 8:50:38 AM9/28/23
to tano...@gmail.com, astrometry
Hi Gaetano,

The key error message is:
  Didn't understand this config file line: "rgb_index_04-11.fits"

I think you want that to be

index rgb_index_04-11.fits

instead.

cheers,
dustin





--
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/ec2ea703-2729-4ad9-acc6-c8094e0db34bn%40googlegroups.com.

Gaetano Zarcone

unread,
Sep 29, 2023, 4:47:35 AM9/29/23
to Dustin Lang, astrometry
Hi Dustin,
thanks for the reply. 
So you suggest changing the name of the index, for example,  from "rgb_index_04-11.fits" to "index_rgb_04-11.fits" ?

cheers
Gaetano

Dustin Lang

unread,
Sep 29, 2023, 7:54:23 AM9/29/23
to Gaetano Zarcone, astrometry
Hi,

No, the filename doesn't matter, but in the config file, you need the line to start with "index " and then the filename.

Eg, config-file lines can be "add_path <path>", "index <filename>", etc.  (You can also use "autoindex" to try reading each file in the "add_path <dir>" directories and use any index files it finds.)

cheer,
dustin

Bryan

unread,
Sep 29, 2023, 3:07:46 PM9/29/23
to astrometry
Gaetano

You may already know this.

If you have a typical astrometry.net local install, then the config file is in  /usr/local/astrometry/etc/astrometry.cfg

See backend config section of README

Bryan

Gaetano Zarcone

unread,
Sep 29, 2023, 3:16:13 PM9/29/23
to Bryan, astrometry
Hi Bryan, hi Dustin

Ok i think to got it.
Let you know

Thanks a lot 

Gaetano

Gaetano Zarcone

unread,
Oct 2, 2023, 3:49:39 AM10/2/23
to Bryan, astrometry
Hi Dustin, Hi Bryan

Ok now it works. Thanks a lot for your useful help!!
Last questions. From the attached .out file, am I right if I say that the indexes useful for the image solving are: 
index_rgb_11-10.fits
index_rgb_11-11.fits
index_rgb_11-12.fits
index_rgb_11-13.fits
index_rgb_11-14.fits ?

Thanks again

Cheers
Gaetano

file.out

Dustin Lang

unread,
Oct 2, 2023, 10:29:44 AM10/2/23
to Gaetano Zarcone, Bryan, astrometry
Hi Gaetano,

Yes, it looks that way, solve-field used "--verify" mode and confirmed the input WCS in those index files.

I see one thing in the log that you might want to fix:

Warning: encountered two index files with the same INDEXID = 1114 and HEALPIX = -1: "/home/s5lab/Research/RGB_catalog/Index/index_rgb_11-14.fits" and "/home/s5lab/Research/RGB_catalog/Index/index_rgb_11-14.fits".  Keeping both.

which probably means you have listed the index files twice, or maybe listed the files and also set the "autoindex" flag?

eg, maybe your config file has

add_path /home/s5lab/Research/RGB_catalog/Index
...
index index_rgb_11-14.fits
...
index index_rgb_11-14.fits

or

add_path /home/s5lab/Research/RGB_catalog/Index
...
index index_rgb_11-14.fits
...
autoindex

You don't need both :)  It shouldn't cause any harm, but will take twice as long to solve!

cheers,
dustin


Gaetano Zarcone

unread,
Oct 2, 2023, 10:42:58 AM10/2/23
to Dustin Lang, Bryan, astrometry
Hi Dustin
Yes it seems that I  listed the files and also set the "autoindex" flag.
Tell me if I'm wrong: in order to avoid this issue, I should:
 
- comment out the autoindex flag putting a # ahead
or
- comment all the index file below "## Or... explicitly list the indices to load"

But, if I'd like to use only the indexes that solve-field use in "--verify" mode to find WCS I should comment out the autoindex flag and comment out all the unnecessary indexes.

Is that right?

Cheers 
Gaetano

Dustin Lang

unread,
Oct 2, 2023, 10:45:16 AM10/2/23
to Gaetano Zarcone, Bryan, astrometry
Yes, that's right.

Or, solve-field will select the correct index files if you set the healpix number when building the index files, and if you set --ra, --dec, --radius.  And, it will only use the right scales of index if you set the --scale-low, --scale-high, --scale-units arguments.

cheers,
dustin

Gaetano Zarcone

unread,
Oct 2, 2023, 10:51:22 AM10/2/23
to Dustin Lang, Bryan, astrometry
Awesome!!
Thanks a lot Dustin.

Cheers
Gaetano

Reply all
Reply to author
Forward
0 new messages