I am interested in suggestions for how to implement a particular task in PixInsight. I am an experienced programmer, and have written a couple of PI scripts, so I understand that process.
The task: I am running ACP with Scheduler. The current system will generate a bunch of panel flats in the early evening, including various filters and rotator angles. The system then runs a number of lights through the night. I have a darks library already created for various temperatures and binning sizes.
The next day I manually run BPP to create master flats from the individual files, then manually run BPP to calibrate (and maybe align and integrate) the individual lights. I have to match up the lights to the appropriate flats based on the date.
I would like to automate this process. I would like to somehow kick off PI with a couple of parameters to automatically run a script of my own. This script would find the folder containing the individual flats and set up and run BPP to create the master flats.
A similar approach would kick off PI to calibrate the lights with the correct flat, dark, and bias masters.
Questions:
1) Clearly PI is normally run interactively; I don't know if it supports some way of running it automatically and exiting when it is done. Can I start PI with some type of run string arguments so it starts a particular script? For example, something like
pixinsight.exe /start myFlatsScript param1 param2
2) I see how to run various processes in my script. Can I run a script (like BPP) in a similar way? At first glance I only see processes being invoked this way.
With a Process, things like
var P = new HistogramTransformation;
P.H = [ // c0, m, c1, r0, r1
[0.00000000, 0.50000000, 1.00000000, 0.00000000, 1.00000000],
[0.00000000, 0.50000000, 1.00000000, 0.00000000, 1.00000000],
[0.00000000, 0.50000000, 1.00000000, 0.00000000, 1.00000000],
[0.00000000, 0.18627451, 1.00000000, 0.00000000, 1.00000000],
[0.00000000, 0.50000000, 1.00000000, 0.00000000, 1.00000000]
];
Can I do something similar with a script?
Thanks for any help.
brew