<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Hi Dominik<BR>
&nbsp;<BR>
I do not have Matlab to test, but there should be no issue of "endianness" as I work on Windows and use PC-based editors. The file type does not seem to be the issue, but more the data within (just guessing).<BR>
&nbsp;<BR>
I have tried all the data type variants without success: other than being able to read the points in.<BR>
&nbsp;<BR>
Didn't seem to make much odds using xyzc (0&nbsp;1 2 3) or (0.0 1.0 2.0 3.0)<BR>
&nbsp;<BR>
Do you have an example raw data file?&nbsp; It would be so much more convenient to be able to load up data via CSV (but that currently doesn't work).<BR>
&nbsp;<BR>
What would be the best way of loading data into Paraview that does not require any programming or major work?<BR>
&nbsp;<BR>
Lester&nbsp;<BR><BR>&gt; From: dominik@itis.ethz.ch<BR>&gt; To: lester_anderson1963@hotmail.com<BR>&gt; Subject: Re: [Paraview] Data range problem<BR>&gt; Date: Mon, 13 Oct 2008 09:03:58 +0200<BR>&gt; CC: paraview@paraview.org<BR>&gt; <BR>&gt; A simple test you could do is to try to read the raw binary file into matlab. <BR>&gt; there you can also specify both endianness and precision (double, int, etc.). <BR>&gt; I bet the reason you do not get the right numbers is that you import a wrong <BR>&gt; datatype.<BR>&gt; <BR>&gt; Dominik<BR>&gt; <BR>&gt; On Sunday 12 October 2008 11:54:36 pm Lester Anderson wrote:<BR>&gt; &gt; I have used a plain text editor to write a simple ascii structure, and also<BR>&gt; &gt; tried using Surfer (Golden Sofware) to prepare .DAT file do the same (eg<BR>&gt; &gt; space delimited or comma delimited). Basically I am testing a simple ascii<BR>&gt; &gt; text file structure and it ckearly loads the data (points plot where they<BR>&gt; &gt; should be), but it is unclear how to set the data type. If we are dealing<BR>&gt; &gt; with positive an negative numbers then I assume that means we need a signed<BR>&gt; &gt; integer or real number type.<BR>&gt; &gt;<BR>&gt; &gt; Perhaps if you could show an example data file that works in the raw import<BR>&gt; &gt; as an xyz,value it might be clearer as to how to proceed. Thanks for the<BR>&gt; &gt; help, I'm sure I'm missing something very obvious here just can't put my<BR>&gt; &gt; finger on it yet!<BR>&gt; &gt;<BR>&gt; &gt; Lester&gt; From: dominik@itis.ethz.ch&gt; To: lester_anderson1963@hotmail.com&gt;<BR>&gt; &gt; Subject: Re: [Paraview] Data range problem&gt; Date: Sun, 12 Oct 2008 20:58:52<BR>&gt; &gt; +0200&gt; CC: paraview@paraview.org&gt; &gt; How do you write the data to a file?&gt; &gt;<BR>&gt; &gt; Dominik&gt; &gt; On Sunday 12 October 2008 02:36:27 pm Lester Anderson wrote:&gt; &gt;<BR>&gt; &gt; Hi Dominik&gt; &gt;&gt; &gt; So how can I define the correct datatype? For example, if<BR>&gt; &gt; it is just signed&gt; &gt; integers like the test I made (-5 to +5), or real<BR>&gt; &gt; numbers (eg -2.54 to&gt; &gt; 5.55). I set the file to LittleEndian as I'm on a<BR>&gt; &gt; PC&gt; &gt;&gt; &gt; Importing the data via the raw format is working, it's just<BR>&gt; &gt; working out the&gt; &gt; correct type to make it work!&gt; &gt;&gt; &gt; Thanks for the help&gt;<BR>&gt; &gt; &gt;&gt; &gt; Lester &gt; From: dominik@itis.ethz.ch&gt; To: paraview@paraview.org&gt;<BR>&gt; &gt; Subject:&gt; &gt; Re: [Paraview] Data range problem&gt; Date: Sun, 12 Oct 2008<BR>&gt; &gt; 12:17:03 +0200&gt;&gt; &gt; CC: lester_anderson1963@hotmail.com&gt; &gt; You most likely<BR>&gt; &gt; imposed wrong&gt; &gt; datatype when importing the raw stuff.&gt; &gt; Dominik&gt; &gt; On<BR>&gt; &gt; Sunday 12 October&gt; &gt; 2008 10:55:18 am Lester Anderson wrote:&gt; &gt; Hello&gt; &gt;&gt; &gt;<BR>&gt; &gt; I have just created&gt; &gt; a test as a set of random values:&gt; &gt;&gt; &gt;&gt; &gt;<BR>&gt; &gt; "x","y","z","grav"0,0,0,20,0,1,30,0,2,50,1,0,-10.1.1,-30,1,2,-50.2.0,10,2,1<BR>&gt; &gt;&gt; &gt;&gt;&gt; &gt;<BR>&gt; &gt; &gt;,20,2,2,51,0,0,-31,0,1,-41,0,2,-11,1,0,01.1.1,-21,1,2,21.2.0,11,2,1-11,2,2<BR>&gt; &gt;&gt; &gt;,0&gt; &gt;2,0,0,02,0,1-52,0,2,-42,1,0,-12.1.1,12,1,2,22.2.0,52,2,1,42,2,2,4&gt;<BR>&gt; &gt; &gt;&gt; &gt;&gt; &gt; It is a cube of point values (x,y,z) with a test scalar (grav). The<BR>&gt; &gt; data&gt; &gt;&gt; &gt; range of "grav" is -5 to +5&gt; &gt;&gt; &gt; I imported the data into<BR>&gt; &gt; Paraview as a&gt; &gt; raw(binary) format file which seemed&gt; &gt; ok, with the<BR>&gt; &gt; extents: 0 to 2 on&gt; &gt; (x,y,z). The result was a Image (uniform&gt; &gt;<BR>&gt; &gt; Rectilinear Grid)&gt; &gt;&gt; &gt; When I&gt; &gt; look at the data information it shows the<BR>&gt; &gt; data range as 2573, 13612&gt; &gt;&gt; &gt; (min,max) - what is going on here?&gt; &gt;&gt; &gt;<BR>&gt; &gt; Thanks&gt; &gt;&gt; &gt; Lester&gt; &gt;&gt; &gt;<BR>&gt; &gt; _________________________________________________________________&gt; &gt; Make<BR>&gt; &gt; a&gt; &gt; mini you and download it into Windows Live Messenger&gt; &gt;&gt; &gt;<BR>&gt; &gt; http://clk.atdmt.com/UKM/go/111354029/direct/01/&gt; &gt; &gt; &gt; -- &gt; Dominik&gt; &gt;<BR>&gt; &gt; Szczerba, Ph.D.&gt; Computational Physics Group&gt; Foundation for Research on&gt; &gt;<BR>&gt; &gt; Information Technologies in Society&gt; http://www.itis.ethz.ch&gt; &gt;<BR>&gt; &gt; _________________________________________________________________&gt; &gt; Make a<BR>&gt; &gt; mini you and download it into Windows Live Messenger&gt; &gt;<BR>&gt; &gt; http://clk.atdmt.com/UKM/go/111354029/direct/01/&gt; &gt; &gt; &gt; -- &gt; Dominik<BR>&gt; &gt; Szczerba, Ph.D.&gt; Computational Physics Group&gt; Foundation for Research on<BR>&gt; &gt; Information Technologies in Society&gt; http://www.itis.ethz.ch<BR>&gt; &gt; _________________________________________________________________<BR>&gt; &gt; Make a mini you and download it into Windows Live Messenger<BR>&gt; &gt; http://clk.atdmt.com/UKM/go/111354029/direct/01/<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; -- <BR>&gt; Dominik Szczerba, Ph.D.<BR>&gt; Computational Physics Group<BR>&gt; Foundation for Research on Information Technologies in Society<BR>&gt; http://www.itis.ethz.ch<BR><BR><br /><hr />Try Facebook in Windows Live Messenger! <a href='http://clk.atdmt.com/UKM/go/111354030/direct/01/' target='_new'>Try it Now!</a></body>
</html>