[Kst] data with times.....

Barth Netterfield netterfield at astro.utoronto.ca
Mon Mar 22 19:24:01 CET 2004


Hi Tom,

are you both interested in reading times and displaying times?

Reading times should be pretty easy: it would require a modification to the 
ascii data source (kst/kst/datasources/ascii/ascii.cpp) - just recognize and 
convert the times to double(seconds). 

Displaying times will take more effort - it will involve a modification to 
KstLabel.  But this code is currently in major flux, so I would delay that 
for a few weeks.  It is on our list of things to do in any case, if you just 
want to wait.

On March 19, 2004 02:51 pm, Tom Larard wrote:
> Would there be any way to allow one to use real time for the x axis values?
> My data looks like.
>
> ............
> 14:57:29  101516.23
> 14:57:30  101519.55
> 14:57:31  101512.79
> 14:57:32  101512.88
> 14:57:33  101519.10
> ..............
>
> Another consideration is that some of my data contains times with
> fractional seconds. I know that gnuplot can't handle this scenario, could
> kst?

if you parse them, then kst is happy to use any double vector as the X axis, 
(including fractional seconds).  The labels currently only print out to 9 sig 
figs, which can be non-optimal for time_t (a bug I would say).

> If there are more pressing features in need of implementation, can someone
> point me in the right direction to make the changes myself? I know c++ well
> enough to probably get it done myself.

great!  Many features are pressing.  But not all orders of implementation are 
ideal :-)  It would be great if you want to implement the parsing of hh:mm:ss 
into seconds.  Decide what you want to do about midnight.  Consider if you 
want to deal with dates.  If you do decide to parse the date, you will have 
to use the locale, because different locales represent dates differently!

dd-mm-yy, yy/mm/dd mm/dd/yy, mmm-dd-yyyy etc, etc. (ack!) 

Let me know what you decide to do.

thanks for offering to help!
cbn



More information about the Kst mailing list