[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Goptical] getting numerical data
From: |
Alexandre Becoulet |
Subject: |
Re: [Goptical] getting numerical data |
Date: |
Sun, 07 Oct 2012 18:05:27 +0200 |
User-agent: |
KMail/4.8.4 (Linux/3.4.3-1-ARCH; KDE/4.8.4; x86_64; ; ) |
On Thursday 04 October 2012 17:01:25 Richard Graham wrote:
Hi,
> I am just getting started with goptical. I was wondering if there is a
> simple way I am overlooking to get the numerical data out of a ray fan
> analysis plot so I can use it for further analysis.
You need to get a reference to the Data::Set object:
const Data::Set &s = fan->get_plot()->get_plot_data(curve_index).get_set();
See http://www.gnu.org/software/goptical/manual/Data_Set_class_reference.html
You can then use the interpolate functions on this object. If you want to
access the data, you need to cast to Data::DiscreteSet.
Best,
--
Alexandre