Hi David
I have a process that I run over some data with multiple minimum. Having filtered the data, I create a poly fit using various degrees to find the one thath works best, using RMS of each to act as a guide.
I thought that using the scripting might be helpful. I created a script as follows:
//==================================
// Script to generate multiple polynomial fits
root = "C:\\Users\\david\\..\\TESS\\"
vstar.polyfit("Filtered", 6)
vstar.polyfit("Filtered", 7)
vstar.polyfit("Filtered", 8)
vstar.polyfit("Filtered", 9)
vstar.polyfit("Filtered", 10)
vstar.polyfit("Filtered", 11)
path = root + "TESS_model.csv"
vstar.saveModelList(path, "@")
path = root + "TESS_lightcurve.png"
vstar.saveLightCurve(path, 1000,800)
//==================================
When executed, it beautifully creates the models. It also generates the light curve nicely. But nothing is generated from the saveModelList function.
Ideally, I'd like to iterate the models and finds the one with the least RMS, but not sure if this is possible with the API as it stands.
Any suggestions would be greatly appreciated.
Regards
David
Hi David
Apologies for the delay! This seems to have fallen between the cracks.
Looking at this problem.
David