<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.E-MailFormatvorlage18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=DE link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hi Tom,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>the netcdf datasource for
kst currently does not support reading in matrices. It should however be fairly
easy to add if you feel so inclined, knowing that matrices are less well
supported than vectors as far as I know. I myself have only worked with vectors
up to now, so I may not be aware of everything. But I fear there is no easy way
to slice matrices into vectors (). Plus it makes little sense to me, as each variable
may have metadata and such attached to it and you would lose all that by
grouping vectors into a matrix. That said, I don't know your constraints well
enough. Maybe you have a good reason indeed to do it that way.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Another path you may want
to go is making some changes to the netcdf datasource so that when it finds
matrices it provides their lines and columns as extra vectors. In that case all
the work should be done at datasource level, but that definitely sounds
feasible. You could query the dimensions of your 2-dimensional variables and
add to the field list vectors like Matrix1/Column1, Matrix1/Column2, Matrix1/Line1,
etc&#8230;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Note: in the current code,
it seems that the dimensions of netcdf vars are not checked, that is *<b><span
style='font-weight:bold'>bad</span></b>*. For cdf, it is done better.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Then, the other question
you may ask yourself is whether to use kst 1.9.x or 2.x for that work. Kst 2.x
is still beta quality, but starting to work and there have been quite a few
changes (among others wrt datasources) so that what you do for one version of
the netcdf datasource may require substantial porting to the other one. FYI,
kst2 also works under Windows but nobody has yet tried netcdf under Windows. So
it is still definitely experimental.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Regards,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Nicolas<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'>

<div>

<br><table border="0" style="border-collapse: collapse" width="38%" id="table1">
        <tr>
                <td width="468" height="8"><b><font face="Arial" size="1">EUROCOPTER&nbsp;DEUTSCHLAND&nbsp;GmbH</font></b></td>
        </tr>
        <tr>
                <td width="468" height="8"><b><font face="Arial" size="1">Sitz&nbsp;der&nbsp;Gesellschaft&nbsp;/&nbsp;Registered&nbsp;Office:&nbsp;Donauw&ouml;rth</font></b></td>
        </tr>        
        <tr>
                <td width="468" height="8"><b><font face="Arial" size="1">Registergericht&nbsp;/&nbsp;Registration&nbsp;Court:&nbsp;Amtsgericht&nbsp;Augsburg&nbsp;HRB&nbsp;16508</font></b></td>
        </tr>
        <tr>
                <td width="468" height="8"><b><font face="Arial" size="1">Vorsitzender&nbsp;des&nbsp;Aufsichtsrates&nbsp;/&nbsp;Chairman&nbsp;of&nbsp;the&nbsp;Supervisory&nbsp;Board:&nbsp;Dr.&nbsp;Lutz&nbsp;Bertling</font></b></td>
        </tr>
        <tr>
                <td width="468" height="8"><b><font face="Arial" size="1">Gesch&auml;ftsf&uuml;hrung&nbsp;/&nbsp;Board&nbsp;of&nbsp;Management:</font></b></td>
        </tr>
        <tr>
                <td width="468" height="8"><b><font face="Arial" size="1">Dr.&nbsp;Wolfgang&nbsp;Schoder,&nbsp;Vorsitzender&nbsp;/&nbsp;CEO;&nbsp;Friedrich-Wilhelm&nbsp;Hormel;&nbsp;Ralf Barnscheidt</font></b></td>
        </tr>
        <tr>
                <td width="468" height="8" style="border-bottom-style: double; border-bottom-width: 3px"><font face="Arial" size="1">&nbsp;</font></td>        
        </tr>
</table>

<table  border="0" style="border-collapse: collapse" width="688" id="table2" height="8">
        <tr>
                 <td width="686" height="8"><font face="Arial" size="1">&nbsp;</td>                        
        </tr>
        <tr>
                <td width="686" height="8"><font face="Arial" size="1">CONFIDENTIALITY&nbsp;NOTICE</td>                
         </tr>        
        <tr>
                 <td width="686" height="8"><font face="Arial" size="1">&nbsp;</td>                        
        </tr>                
        <tr>
                <td width="686" height="8"><font face="Arial" size="1">This&nbsp;communication&nbsp;and&nbsp;the&nbsp;information&nbsp;it&nbsp;contains&nbsp;is&nbsp;intended&nbsp;for&nbsp;the&nbsp;addressee&nbsp;(&nbsp;s&nbsp;)&nbsp;named&nbsp;above&nbsp;and&nbsp;for&nbsp;no&nbsp;other&nbsp;persons&nbsp;or&nbsp;organizations.&nbsp;</td>                                 
        </tr>
        <tr>
                 <td width="686" height="8"><font face="Arial" size="1">It&nbsp;is&nbsp;confidential&nbsp;and&nbsp;may&nbsp;be&nbsp;legally&nbsp;privileged&nbsp;and&nbsp;protected&nbsp;by&nbsp;law.&nbsp;The&nbsp;unauthorized&nbsp;use,&nbsp;copying&nbsp;or&nbsp;disclosure&nbsp;of&nbsp;this&nbsp;communication&nbsp;</td>                        
        </tr>
        <tr>
                 <td width="686" height="8"><font face="Arial" size="1">or&nbsp;any&nbsp;part&nbsp;of&nbsp;it&nbsp;is&nbsp;prohibited&nbsp;and&nbsp;may&nbsp;be&nbsp;unlawful.&nbsp;</td>                        
        </tr>
        <tr>
                 <td width="686" height="8"><font face="Arial" size="1">If&nbsp;you&nbsp;have&nbsp;received&nbsp;this&nbsp;communication&nbsp;in&nbsp;error,&nbsp;kindly&nbsp;notify&nbsp;us&nbsp;by&nbsp;return&nbsp;e-mail&nbsp;and&nbsp;discard&nbsp;and/or&nbsp;delete&nbsp;the&nbsp;communication.&nbsp;</td>                        
        </tr>
        <tr>
                <td width="686" height="8"><font face="Arial" size="1">Thank&nbsp;you&nbsp;very&nbsp;much.</td>                                 
        </tr>
        <tr>
                 <td width="686" height="8"><font face="Arial" size="1">It&nbsp;is&nbsp;possible&nbsp;for&nbsp;e-mails&nbsp;to&nbsp;be&nbsp;intercepted&nbsp;or&nbsp;affected&nbsp;by&nbsp;viruses.&nbsp;Whilst&nbsp;we&nbsp;maintain&nbsp;virus&nbsp;checks&nbsp;on&nbsp;our&nbsp;e-mails,&nbsp;we&nbsp;accept&nbsp;no&nbsp;liability&nbsp;for&nbsp;viruses&nbsp;</td>                        
        </tr>                                
        <tr>
                <td width="686" height="8"><font face="Arial" size="1">or&nbsp;other&nbsp;material&nbsp;which&nbsp;might&nbsp;be&nbsp;introduced&nbsp;with&nbsp;this&nbsp;message.</td>                                 
        </tr>
</table><br><div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>Von:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Tom Downes
[mailto:tpdownes@caltech.edu] <br>
<b><span style='font-weight:bold'>Gesendet:</span></b> Montag, 19. April 2010
20:46<br>
<b><span style='font-weight:bold'>An:</span></b> kst@kde.org<br>
<b><span style='font-weight:bold'>Betreff:</span></b> [Kst] reading in NetCDF
matrix (2-dim vector)</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Hi:<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>I'm reasonably familiar with KST but am having a lot of trouble parsing
a NetCDF file in the fashion I intend. &nbsp;I am working on an instrument that
will have have around 100 independent detectors measured at 100 samples per
second each (i.e., around 10,000 total measurements per second). &nbsp;From the
perspective of data acquisition it is much easier to write to a NetCDF variable
with dimensions n_detectors x n_samples, where n_detectors would be this number
around 100 (126 in example below) and n_samples would equal 100 for 1 seconds
worth of data.<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>But trying to get KST to read this data in the way I intend seems to be
difficult. &nbsp;I want it to be able to split the matrix into 126 separate
vectors so that I can plot a timestream for each - realistically I would take a
representative sample. &nbsp;The &quot;sample&quot; and &quot;frame&quot;
terminology doesn't seem to quite match up to what I am doing - frames seem to
be more about bookkeeping than actually combining many timestream vectors into
a matrix.<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Anyhow, I would like to solve this in a relatively simple way, with a
preference toward avoiding re-writing how the data is originally written to
disk as it is much simpler this way. &nbsp;Can I do what I need to do within
KST or with a simple plug-in? &nbsp;I am quite comfortable working in
C/C++/Java and shell scripting environments. &nbsp;Suggestions?<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>This is what the file looks like:<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>netcdf test-udp {<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>dimensions:<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><span class=apple-tab-span><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></span>time
= UNLIMITED ; // (3960037 currently)<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span class=apple-tab-span><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></span>nkids
= 126 ;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>variables:<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><span class=apple-tab-span><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></span>int
kids(time, nkids) ;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span class=apple-tab-span><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></span>kids:scale_factor
= 1 ;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span class=apple-tab-span><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></span>kids:add_offset
= 0 ;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span class=apple-tab-span><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></span>kids:units
= &quot;bits&quot; ;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span class=apple-tab-span><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></span>int
timestamp(time) ;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span class=apple-tab-span><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></span>timestamp:scale_factor
= 1 ;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span class=apple-tab-span><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></span>timestamp:add_offset
= 0 ;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span class=apple-tab-span><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></span>timestamp:units
= &quot;bits&quot; ;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>}<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>I am running KST 1.9.1 compiled manually after checking out the release
source. &nbsp;I don't think it matters, but I am running the kde3 libraries
alongside the kde4 libraries while logged into a KDE 3.5 WM session in OpenSUSE
11.2.<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Tom<o:p></o:p></span></font></p>

</div>

</div>

</div>

</body>

</html>