<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Hi Berk<BR>
&nbsp;<BR>
Thanks for the suggestion. Would I be right in saying that the data in the lookup table part have to be in a specific format i.e. 3 rows of 9 floats in your example? Is there a rule of thumb about the layout of the lookout table?<BR>
&nbsp;<BR>
I think the file format is fine for smallish data volumes but could be a lot of work if it's a large dataset. Any possibility that a future release will allow the user to load a CSV spreadsheet file and generate data volumes directly ?<BR>
&nbsp;<BR>
Thanks<BR>
&nbsp;<BR>
Lester<BR>
&nbsp;<BR>
<BR><BR>&gt; Date: Tue, 14 Oct 2008 12:06:59 -0400<BR>&gt; From: berk.geveci@kitware.com<BR>&gt; To: lester_anderson1963@hotmail.com<BR>&gt; Subject: Re: [Paraview] Data range problem<BR>&gt; CC: dominik@itis.ethz.ch; paraview@paraview.org<BR>&gt; <BR>&gt; Lester,<BR>&gt; <BR>&gt; Your best choice is probably going to be VTK ascii format. It is a<BR>&gt; very simple format. A uniform rectilinear grid would look like:<BR>&gt; <BR>&gt; # vtk DataFile Version 3.0<BR>&gt; vtk output<BR>&gt; ASCII<BR>&gt; DATASET STRUCTURED_POINTS<BR>&gt; DIMENSIONS 3 3 3<BR>&gt; SPACING 1 1 1<BR>&gt; ORIGIN 0 0 0<BR>&gt; POINT_DATA 27<BR>&gt; SCALARS RTData float<BR>&gt; LOOKUP_TABLE default<BR>&gt; 60.7635 107.555 80.5241 85.9694 156.706 105.73 37.3531 84.1445 57.1137<BR>&gt; 100.634 171.37 120.395 149.785 260 169.546 77.2238 147.96 96.9844<BR>&gt; 60.7635 107.555 80.5241 85.9694 156.706 105.73 37.3531 84.1445 57.1137<BR>&gt; <BR>&gt; A curvilinear grid is easy to write as well. The only additional<BR>&gt; information needed is the point coordinates.<BR>&gt; <BR>&gt; More detail can be found here: http://vtk.org/pdf/file-formats.pdf<BR>&gt; <BR>&gt; -berk<BR>&gt; <BR>&gt; <BR>&gt; On Tue, Oct 14, 2008 at 11:28 AM, Lester Anderson<BR>&gt; &lt;lester_anderson1963@hotmail.com&gt; wrote:<BR>&gt; &gt; Hi Domink<BR>&gt; &gt;<BR>&gt; &gt; Sounds like I do't know what the Paraview definition of plain raw format is.<BR>&gt; &gt; I have attached the simple test file - just 3 points with a scalar value. It<BR>&gt; &gt; has a header section but paraview should recognise that anyway.<BR>&gt; &gt;<BR>&gt; &gt; Anything look odd in there?<BR>&gt; &gt;<BR>&gt; &gt; Thanks<BR>&gt; &gt;<BR>&gt; &gt; Lester<BR>&gt; &gt;<BR>&gt; &gt;&gt; From: dominik@itis.ethz.ch<BR>&gt; &gt;&gt; To: lester_anderson1963@hotmail.com<BR>&gt; &gt;&gt; Subject: Re: [Paraview] Data range problem<BR>&gt; &gt;&gt; Date: Tue, 14 Oct 2008 08:25:22 +0200<BR>&gt; &gt;&gt; CC: paraview@paraview.org<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; Hi, if you have tried all datatypes in Paraview then chances are very high<BR>&gt; &gt;&gt; your data is not plain raw format but includes some header etc. I don't<BR>&gt; &gt;&gt; have<BR>&gt; &gt;&gt; anything at hand in raw format but would be surprized there is none in VTK<BR>&gt; &gt;&gt; example data.<BR>&gt; &gt;&gt; PS. I think some little programming might often help you out. You might<BR>&gt; &gt;&gt; want<BR>&gt; &gt;&gt; to look at python if you want to keep it at minimum (plus it integrates<BR>&gt; &gt;&gt; with<BR>&gt; &gt;&gt; VTK and PV).<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; Dominik<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; On Monday 13 October 2008 11:00:22 pm Lester Anderson wrote:<BR>&gt; &gt;&gt; &gt; Hi Dominik<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt; I do not have Matlab to test, but there should be no issue of<BR>&gt; &gt;&gt; &gt; 'endianness'<BR>&gt; &gt;&gt; &gt; as I work on Windows and use PC-based editors. The file type does not<BR>&gt; &gt;&gt; &gt; seem<BR>&gt; &gt;&gt; &gt; to be the issue, but more the data within (just guessing).<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt; I have tried all the data type variants without success: other than<BR>&gt; &gt;&gt; &gt; being<BR>&gt; &gt;&gt; &gt; able to read the points in.<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt; Didn't seem to make much odds using xyzc (0 1 2 3) or (0.0 1.0 2.0 3.0)<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt; Do you have an example raw data file? It would be so much more<BR>&gt; &gt;&gt; &gt; convenient<BR>&gt; &gt;&gt; &gt; to be able to load up data via CSV (but that currently doesn't work).<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt; What would be the best way of loading data into Paraview that does not<BR>&gt; &gt;&gt; &gt; require any programming or major work?<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt; Lester &gt; From: dominik@itis.ethz.ch&gt; To:<BR>&gt; &gt;&gt; &gt; lester_anderson1963@hotmail.com&gt;<BR>&gt; &gt;&gt; &gt; Subject: Re: [Paraview] Data range problem&gt; Date: Mon, 13 Oct 2008<BR>&gt; &gt;&gt; &gt; 09:03:58<BR>&gt; &gt;&gt; &gt; +0200&gt; CC: paraview@paraview.org&gt; &gt; A simple test you could do is to try<BR>&gt; &gt;&gt; &gt; to<BR>&gt; &gt;&gt; &gt; read the raw binary file into matlab. &gt; there you can also specify both<BR>&gt; &gt;&gt; &gt; endianness and precision (double, int, etc.). &gt; I bet the reason you do<BR>&gt; &gt;&gt; &gt; not<BR>&gt; &gt;&gt; &gt; get the right numbers is that you import a wrong &gt; datatype.&gt; &gt; Dominik&gt;<BR>&gt; &gt;&gt; &gt; &gt;<BR>&gt; &gt;&gt; &gt; On Sunday 12 October 2008 11:54:36 pm Lester Anderson wrote:&gt; &gt; I have<BR>&gt; &gt;&gt; &gt; used<BR>&gt; &gt;&gt; &gt; a plain text editor to write a simple ascii structure, and also&gt; &gt; tried<BR>&gt; &gt;&gt; &gt; using Surfer (Golden Sofware) to prepare .DAT file do the same (eg&gt; &gt;<BR>&gt; &gt;&gt; &gt; space<BR>&gt; &gt;&gt; &gt; delimited or comma delimited). Basically I am testing a simple ascii&gt; &gt;<BR>&gt; &gt;&gt; &gt; text file structure and it ckearly loads the data (points plot where<BR>&gt; &gt;&gt; &gt; they&gt;<BR>&gt; &gt;&gt; &gt; &gt; should be), but it is unclear how to set the data type. If we are<BR>&gt; &gt;&gt; &gt; dealing&gt; &gt; with positive an negative numbers then I assume that means we<BR>&gt; &gt;&gt; &gt; need a signed&gt; &gt; integer or real number type.&gt; &gt;&gt; &gt; Perhaps if you could<BR>&gt; &gt;&gt; &gt; show an example data file that works in the raw import&gt; &gt; as an<BR>&gt; &gt;&gt; &gt; xyz,value<BR>&gt; &gt;&gt; &gt; it might be clearer as to how to proceed. Thanks for the&gt; &gt; help, I'm<BR>&gt; &gt;&gt; &gt; sure<BR>&gt; &gt;&gt; &gt; I'm missing something very obvious here just can't put my&gt; &gt; finger on<BR>&gt; &gt;&gt; &gt; it<BR>&gt; &gt;&gt; &gt; yet!&gt; &gt;&gt; &gt; Lester&gt; From: dominik@itis.ethz.ch&gt; To:<BR>&gt; &gt;&gt; &gt; lester_anderson1963@hotmail.com&gt;&gt; &gt; Subject: Re: [Paraview] Data range<BR>&gt; &gt;&gt; &gt; problem&gt; Date: Sun, 12 Oct 2008 20:58:52&gt; &gt; +0200&gt; CC:<BR>&gt; &gt;&gt; &gt; paraview@paraview.org&gt; &gt; How do you write the data to a file?&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt; Dominik&gt; &gt; On Sunday 12 October 2008 02:36:27 pm Lester Anderson wrote:&gt;<BR>&gt; &gt;&gt; &gt; &gt;&gt;<BR>&gt; &gt;&gt; &gt; &gt; Hi Dominik&gt; &gt;&gt; &gt; So how can I define the correct datatype? For<BR>&gt; &gt;&gt; &gt; &gt; example,<BR>&gt; &gt;&gt; &gt; if&gt; &gt; it is just signed&gt; &gt; integers like the test I made (-5 to +5), or<BR>&gt; &gt;&gt; &gt; real&gt; &gt; numbers (eg -2.54 to&gt; &gt; 5.55). I set the file to LittleEndian as<BR>&gt; &gt;&gt; &gt; I'm on a&gt; &gt; PC&gt; &gt;&gt; &gt; Importing the data via the raw format is working,<BR>&gt; &gt;&gt; &gt; it's<BR>&gt; &gt;&gt; &gt; just&gt; &gt; working out the&gt; &gt; correct type to make it work!&gt; &gt;&gt; &gt; Thanks<BR>&gt; &gt;&gt; &gt; for<BR>&gt; &gt;&gt; &gt; the help&gt;&gt; &gt; &gt;&gt; &gt; Lester &gt; From: dominik@itis.ethz.ch&gt; To:<BR>&gt; &gt;&gt; &gt; paraview@paraview.org&gt;&gt; &gt; Subject:&gt; &gt; Re: [Paraview] Data range problem&gt;<BR>&gt; &gt;&gt; &gt; Date: Sun, 12 Oct 2008&gt; &gt; 12:17:03 +0200&gt;&gt; &gt; CC:<BR>&gt; &gt;&gt; &gt; lester_anderson1963@hotmail.com&gt; &gt; You most likely&gt; &gt; imposed wrong&gt; &gt;<BR>&gt; &gt;&gt; &gt; datatype when importing the raw stuff.&gt; &gt; Dominik&gt; &gt; On&gt; &gt; Sunday 12<BR>&gt; &gt;&gt; &gt; October&gt; &gt; 2008 10:55:18 am Lester Anderson wrote:&gt; &gt; Hello&gt; &gt;&gt; &gt;&gt; &gt; I<BR>&gt; &gt;&gt; &gt; have<BR>&gt; &gt;&gt; &gt; just created&gt; &gt; a test as a set of random values:&gt; &gt;&gt; &gt;&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&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; &gt;&gt;&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &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;&gt; &gt;&gt; &gt;,0&gt;<BR>&gt; &gt;&gt; &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;&gt; &gt;<BR>&gt; &gt;&gt; &gt; &gt; &gt;&gt;<BR>&gt; &gt;&gt; &gt; &gt;&gt; &gt; It is a cube of point values (x,y,z) with a test scalar (grav).<BR>&gt; &gt;&gt; &gt; &gt;&gt; &gt; The&gt; &gt;<BR>&gt; &gt;&gt; &gt; data&gt; &gt;&gt; &gt; range of 'grav' is -5 to +5&gt; &gt;&gt; &gt; I imported the data into&gt; &gt;<BR>&gt; &gt;&gt; &gt; Paraview as a&gt; &gt; raw(binary) format file which seemed&gt; &gt; ok, with the&gt; &gt;<BR>&gt; &gt;&gt; &gt; extents: 0 to 2 on&gt; &gt; (x,y,z). The result was a Image (uniform&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt; Rectilinear Grid)&gt; &gt;&gt; &gt; When I&gt; &gt; look at the data information it shows<BR>&gt; &gt;&gt; &gt; the&gt; &gt; data range as 2573, 13612&gt; &gt;&gt; &gt; (min,max) - what is going on<BR>&gt; &gt;&gt; &gt; here?&gt;<BR>&gt; &gt;&gt; &gt; &gt;&gt; &gt;&gt; &gt; Thanks&gt; &gt;&gt; &gt; Lester&gt; &gt;&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt; _________________________________________________________________&gt; &gt;<BR>&gt; &gt;&gt; &gt; Make&gt;<BR>&gt; &gt;&gt; &gt; &gt; a&gt; &gt; mini you and download it into Windows Live Messenger&gt; &gt;&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt; http://clk.atdmt.com/UKM/go/111354029/direct/01/&gt; &gt; &gt; &gt; -- &gt; Dominik&gt; &gt;&gt;<BR>&gt; &gt;&gt; &gt; &gt;<BR>&gt; &gt;&gt; &gt; Szczerba, Ph.D.&gt; Computational Physics Group&gt; Foundation for Research<BR>&gt; &gt;&gt; &gt; on&gt;<BR>&gt; &gt;&gt; &gt; &gt;&gt; &gt; Information Technologies in Society&gt; http://www.itis.ethz.ch&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt; _________________________________________________________________&gt; &gt;<BR>&gt; &gt;&gt; &gt; Make<BR>&gt; &gt;&gt; &gt; a&gt; &gt; mini you and download it into Windows Live Messenger&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt; http://clk.atdmt.com/UKM/go/111354029/direct/01/&gt; &gt; &gt; &gt; -- &gt; Dominik&gt; &gt;<BR>&gt; &gt;&gt; &gt; Szczerba, Ph.D.&gt; Computational Physics Group&gt; Foundation for Research<BR>&gt; &gt;&gt; &gt; on&gt; &gt;<BR>&gt; &gt;&gt; &gt; Information Technologies in Society&gt; http://www.itis.ethz.ch&gt; &gt;<BR>&gt; &gt;&gt; &gt; _________________________________________________________________&gt; &gt;<BR>&gt; &gt;&gt; &gt; Make a<BR>&gt; &gt;&gt; &gt; mini you and download it into Windows Live Messenger&gt; &gt;<BR>&gt; &gt;&gt; &gt; http://clk.atdmt.com/UKM/go/111354029/direct/01/&gt; &gt; &gt; &gt; -- &gt; Dominik<BR>&gt; &gt;&gt; &gt; Szczerba, Ph.D.&gt; Computational Physics Group&gt; Foundation for Research on<BR>&gt; &gt;&gt; &gt; Information Technologies in Society&gt; http://www.itis.ethz.ch<BR>&gt; &gt;&gt; &gt; _________________________________________________________________<BR>&gt; &gt;&gt; &gt; Get all your favourite content with the slick new MSN Toolbar - FREE<BR>&gt; &gt;&gt; &gt; http://clk.atdmt.com/UKM/go/111354027/direct/01/<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; --<BR>&gt; &gt;&gt; Dominik Szczerba, Ph.D.<BR>&gt; &gt;&gt; Computational Physics Group<BR>&gt; &gt;&gt; Foundation for Research on Information Technologies in Society<BR>&gt; &gt;&gt; http://www.itis.ethz.ch<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; ________________________________<BR>&gt; &gt; Try Facebook in Windows Live Messenger! Try it Now!<BR>&gt; &gt; _______________________________________________<BR>&gt; &gt; ParaView mailing list<BR>&gt; &gt; ParaView@paraview.org<BR>&gt; &gt; http://www.paraview.org/mailman/listinfo/paraview<BR>&gt; &gt;<BR>&gt; &gt;<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>