OK, I've been trawling the forum and I'm not making any headway. A little history, I've decided that I want to use my telescope set up more scientifically so I want to do some entry level spectroscopy using a diffraction grating in the light path and then manipulate the images of the spectra I take back in the warmth of the house!
I'm working on a Mac so my analysis/manipulation won't include things like Rspec-astro etc. So, having Pixinsight in my arsenal I decided to look into using it to do some initial analysis but I'm just not getting my head around the logic of writing a script to do the necessary.
What I want to do is take the spectrum image, turn it into grey scale, so that I'm just looking at one channel, then follow a line across the new image picking out the intensity of each pixel along this line, put it into a vector (output to a .dat file) then throw it at gnuplot so draw a spline through the points.
I've looked at the example jscript in the forum but this outputs a 3d surface using SurfaceSplines. I don't seem to be able to tell the script interpreter about splines?? I've looked at the 3DPlot script which comes with PixInsight but I just can't see what it is doing.
Has anyone done this kind of script before?? At least the spline plotting, I should be able to figure out the rest!
Along the way I would like to annotate the x-axis with wavelength values for the colours, any suggestions how I might create this dataset from the colour pixel information? is there a transform from RGB to wavelength??
Hope someone can set me in the right direction 😞
Best Regards
Andrew