Version 1-5-4 of PlotSpectra available
-
- Posts: 168
- Joined: Fri Apr 04, 2014 6:31 pm
- Location: Arnprior Ontario
Version 1-5-4 of PlotSpectra available
A new version of PlotSpectra is available here: https://1drv.ms/f/s!AvXqhKI5kEGRjEhdaQ6jaj8AHx_L
This version fixes a bug with the print routine that misplaced the series legends on stacked charts.
It Also adds a new feature (finally got around to it Robin )
A right click context menu item "Signal/noise" has been added for the main plot.
The S/N is estimated using two spectra of the object that are derived from two equal groups of exposures obtained in the same observing run.
For example if 6 exposures are available then one spectrum could use exposures: 1,3,5 and the other could use exposures: 2,4,6.
One spectrum is used to normalize the other and then a set number of points along the wavelength axis are used to estimate the noise and generate a plot of S/N versu wavelength.
Here is an example for VV Cep that has no smooth regions in the continum for noise evaluation.
First the two spectra derived from exposures 1,3,5 and 2,4,6.
And the generated S/N plot ( ignore the fact that y axis still says relative intensity)
The noise estimate used 100 points along the wavelength axis. Note that the noise estimate is very sensitive to any wavelength shifts of strong lines between the two sets of data.
The "noisy" nature of this S/N plot is due in part to the fact that VV Cep has a great many lines at this resolution.
Although it will require care to use and interpret I think this calculation will be useful.
Tim
This version fixes a bug with the print routine that misplaced the series legends on stacked charts.
It Also adds a new feature (finally got around to it Robin )
A right click context menu item "Signal/noise" has been added for the main plot.
The S/N is estimated using two spectra of the object that are derived from two equal groups of exposures obtained in the same observing run.
For example if 6 exposures are available then one spectrum could use exposures: 1,3,5 and the other could use exposures: 2,4,6.
One spectrum is used to normalize the other and then a set number of points along the wavelength axis are used to estimate the noise and generate a plot of S/N versu wavelength.
Here is an example for VV Cep that has no smooth regions in the continum for noise evaluation.
First the two spectra derived from exposures 1,3,5 and 2,4,6.
And the generated S/N plot ( ignore the fact that y axis still says relative intensity)
The noise estimate used 100 points along the wavelength axis. Note that the noise estimate is very sensitive to any wavelength shifts of strong lines between the two sets of data.
The "noisy" nature of this S/N plot is due in part to the fact that VV Cep has a great many lines at this resolution.
Although it will require care to use and interpret I think this calculation will be useful.
Tim
-
- Posts: 1929
- Joined: Mon Sep 26, 2011 4:41 pm
- Contact:
Re: Version 1-5-4 of PlotSpectra available
Thanks Tim ! I will have a play with that. How did you calculate the SNR from the two spectra ?
Cheers
Robin
Cheers
Robin
LHIRES III #29 ATIK314 ALPY 600/200 ATIK428 Star Analyser 100/200 C11 EQ6
http://www.threehillsobservatory.co.uk
http://www.threehillsobservatory.co.uk
-
- Posts: 168
- Joined: Fri Apr 04, 2014 6:31 pm
- Location: Arnprior Ontario
Re: Version 1-5-4 of PlotSpectra available
Robin - After normalizing one spectrum with the other I simply calculate the sdev of a set number of points along the wavelength axis, centred on the wavelength of interest. These values are divided by 2 to represent the noise that would be present if all the exposures had been used and were normalized by a noise free spectrum. The s/n plot uses the inverse of the resulting values, calculated for each point on the wavelength axis.
Tim
Tim
-
- Posts: 1521
- Joined: Fri Sep 23, 2011 1:01 pm
- Location: Rouen
- Contact:
Re: Version 1-5-4 of PlotSpectra available
Thank you, Tim
It works well!
François
It works well!
François
François Teyssier
http://www.astronomie-amateur.fr
http://www.astronomie-amateur.fr
Re: Version 1-5-4 of PlotSpectra available
Dear Tim.
Is there a documentation or user guide of PlotSpectra available?
Best regards,
Ibrahima.
Is there a documentation or user guide of PlotSpectra available?
Best regards,
Ibrahima.
-
- Posts: 54
- Joined: Fri Sep 11, 2015 10:31 am
Re: Version 1-5-4 of PlotSpectra available
Tim,
Does this work with windows XP ?
Regards,
Jack
Essex UK
Does this work with windows XP ?
Regards,
Jack
Essex UK
-
- Posts: 168
- Joined: Fri Apr 04, 2014 6:31 pm
- Location: Arnprior Ontario
Re: Version 1-5-4 of PlotSpectra available
Jack,
Unfortunately PlotSpectra requires Dot Net framework 4.5 or later. Windows XP is not compatible with Dot Net 4.5.
Tim
Unfortunately PlotSpectra requires Dot Net framework 4.5 or later. Windows XP is not compatible with Dot Net 4.5.
Tim
-
- Posts: 54
- Joined: Fri Sep 11, 2015 10:31 am
Re: Version 1-5-4 of PlotSpectra available
Tim,
Thanks for your clarification.
Regards,
Jack
Essex UK
Thanks for your clarification.
Regards,
Jack
Essex UK
-
- Posts: 1929
- Joined: Mon Sep 26, 2011 4:41 pm
- Contact:
Re: Version 1-5-4 of PlotSpectra available
Hi Tim,
Would it be possible to raise the maximum height of the plots? (currently 606 pixels for the main plot (675 if stacked). For some plots eg with a high dynamic range or a stack of spectra a portrait rather than landscape format is more useful.
Thanks
Robin
Would it be possible to raise the maximum height of the plots? (currently 606 pixels for the main plot (675 if stacked). For some plots eg with a high dynamic range or a stack of spectra a portrait rather than landscape format is more useful.
Thanks
Robin
LHIRES III #29 ATIK314 ALPY 600/200 ATIK428 Star Analyser 100/200 C11 EQ6
http://www.threehillsobservatory.co.uk
http://www.threehillsobservatory.co.uk
-
- Posts: 168
- Joined: Fri Apr 04, 2014 6:31 pm
- Location: Arnprior Ontario
Re: Version 1-5-4 of PlotSpectra available
Hi Robin,
Sorry for the late reply. The short answer is: I'm sure its possible but it may not be easy. I use the Microsoft .NET charting module. The save plot function only generates a graphic of what is on the screen so I temporarily maximize the window and reduce the other two plot areas to minimum size before saving the plot. This leads to the max sizes you are encountering for a typical display size. I did try to plot the charts to a larger virtual window before saving but I could not get this to work for some reason. I'll work on it again
Remember that under the File menu there is a print menu item. You can print to pdf and some of the pdf print drivers available allow you to generate a png file instead. This may be a work around. I haven't tried it myself.
I have a 4K monitor (well worth the purchase in my opinion) so the max sizes for me are bigger. A better work around.
Tim
Sorry for the late reply. The short answer is: I'm sure its possible but it may not be easy. I use the Microsoft .NET charting module. The save plot function only generates a graphic of what is on the screen so I temporarily maximize the window and reduce the other two plot areas to minimum size before saving the plot. This leads to the max sizes you are encountering for a typical display size. I did try to plot the charts to a larger virtual window before saving but I could not get this to work for some reason. I'll work on it again
Remember that under the File menu there is a print menu item. You can print to pdf and some of the pdf print drivers available allow you to generate a png file instead. This may be a work around. I haven't tried it myself.
I have a 4K monitor (well worth the purchase in my opinion) so the max sizes for me are bigger. A better work around.
Tim