rlancaste / stellarsolver

GNU General Public License v3.0
89 stars 47 forks source link

Run stellarsolver from terminal #79

Closed tosaric closed 2 years ago

tosaric commented 3 years ago

options already set which works best for me. So I have a few questions for your program:

  1. Is it possible to run stellar solver from the terminal, without GUI because I want to put it in a docker, and run it automatically on every new image in a folder?
  2. If it is, how to set parameters (e.g. scale, initial position,...)?
  3. I need an output with the position of every star from the field and from the catalog, so I can calculate on-sky separation between these two points, and call it the precision of solving. Also, can I output the .wcs file with a solution?
  4. What about the distortion of a lens, how to check it, or set different tweak orders (astrometry.net option)?

These are all just a question I have because I am already using astrometry.net to solve all of it, but as I tried your software, it is much faster(under 2 sec, where astromety.net needs 4).

rlancaste commented 3 years ago

Hi there, at the moment I don't think this is possible since it wasn't designed this way. Astrometry.net is designed to be a command line interface. My goal was to make an internal library that could work from within KStars that eliminates or minimizes the command line aspect. The primary goal actually wasn't speed, it was getting rid of all the issues with different operating systems, python versions, configuration files, and command line options. I don't believe it would be very difficult for you to get the same speed with traditional astrometry.net with a few tweaks. The main ways I increased its speed was to use parallel threads to solve images and to use SEP or SExtractor instead of python/netpbm to do star extraction. astrometry.net can already be used in this manner, but it would require multiple steps, a small program, or a script to manage it. Maybe I can add this feature to StellarSolver in the future, but it would require a lot of thought.