Blind and update question for platesolve script

This commit is contained in:
2025-04-28 17:25:07 +02:00
parent f8704c51d8
commit 1a214a169e
+5 -2
View File
@@ -2,12 +2,15 @@ core.log("Plate solve and update solution");
var first = true;
var update = core.question("Update FITS header with solution?", ["yes", "no"], "Update FITS header") == "yes";
var blind = core.question("Do blind solve every image?", ["yes", "no"], "Blind solve?") == "yes";
for(file of files)
{
if(file.suffix() == "fits" || file.suffix() == "fit" || file.suffix() == "xisf")
{
var solution = file.solve(true);
if(first)
var solution = file.solve(update);
if(first && !blind)
{
core.setStartingSolution(solution);
first = false;