Specifying Index directory in command line

8 views
Skip to first unread message

Grant Privett

unread,
Sep 19, 2025, 3:34:10 PM (2 days ago) Sep 19
to astrometry
Hi Dustin,

Just a quick and non-urgent query regarding the selection of Index files.

I have a Python utility that I wrote which processes EO/CMOS images, creates bintables of star x/y/count and passes them to an Ubuntu astrometry.net instance under WSL. It works fine with the 4100 and 5200 Heavy Index files I supply.

However, I now frequently also process data from a SWIR/InGAs J Band sensor and so use the 2MASS Index files. It works fine with them too. 

Currently, I copy different sets of Index files to the required Index directory before starting to process a new batch but it would be neater if I could just throw images of either modality at the code.

I wondered if I could just add a parameter to the solve-field command line that directs astrometry.net to look in a specfied directory for the Index files. 

From what I read, it looks like I could have two variant copies of the .cfg file and choose between them, based on what I found in the FILTER keyword, but I wondered if there was a more recently added parameter that would allowed me to point solve-field at a specific directory - with it perhaps assuming autoindex.  

Thanks for any reply.  As I say, non-urgent.
Grant

Dustin Lang

unread,
Sep 19, 2025, 3:45:00 PM (2 days ago) Sep 19
to Grant Privett, astrometry
Hi Grant,

Just looking at the "solve-field -h" output, apparently there is such a command-line argument --

  --index-dir <dirname>: search for index files in the given directory, for
          "astrometry-engine"

I have no recollection of writing that, and could not tell you whether index-dir adds to or over-rides the paths in the config file!

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 visit https://groups.google.com/d/msgid/astrometry/a56d28ce-6f0b-47b3-8c96-34158efa233dn%40googlegroups.com.

Grant Privett

unread,
Sep 19, 2025, 3:51:12 PM (2 days ago) Sep 19
to Dustin Lang, astrometry

I suppose then, that if I ensure the .cfg file cannot find any Index file, then the only choice it has is wherever I point it?

That sounds very hopeful. Something to play with over the weekend.

Grant


Virus-free.www.avast.com
Reply all
Reply to author
Forward
0 new messages