<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.28.3">
</HEAD>
<BODY>
<BR>
Hi,<BR>
<BR>
I have the same error.<BR>
For myself, this message occurs when I read the geometry alone, without the results file.<BR>
Nevertheless, I can display the geometry.<BR>
I guess it reports there is no results file in input.<BR>
It appeared with version 3.98.<BR>
<BR>
There is no message if I read geometry + results file at the same time <BR>
<BR>
Best regards<BR>
Joëlle<BR>
<BR>
<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>
Date: Thu, 14 Mar 2013 11:28:07 +0000
From: Paul Edwards <<A HREF="mailto:paul.m.edwards@gmail.com">paul.m.edwards@gmail.com</A>>
Subject: Re: [Paraview] Reading PLOT3D into Paraview
To: Nikolaos Beratlis <<A HREF="mailto:nikos.beratlis@gmail.com">nikos.beratlis@gmail.com</A>>
Cc: <A HREF="mailto:paraview@paraview.org">paraview@paraview.org</A>
Message-ID:
<<A HREF="mailto:CABWOrb8hGrayuoRhDA4CVpZyr8d2kFeFQZzH0uKGAuf8AczjEA@mail.gmail.com">CABWOrb8hGrayuoRhDA4CVpZyr8d2kFeFQZzH0uKGAuf8AczjEA@mail.gmail.com</A>>
Content-Type: text/plain; charset="iso-8859-1"
Make sure you de-select "Binary" and select "Multigrid" (i.e. all
checkboxes off except "multigrid")
Regards,
Paul
On 13 March 2013 21:17, Nikolaos Beratlis <<A HREF="mailto:nikos.beratlis@gmail.com">nikos.beratlis@gmail.com</A>> wrote:
> Hi,
>
> I have problems reading PLOT3D files into paraview. Here is a small test
> file containing the grid:
>
> 1
> 3 2 2
> 0.0 1.0 2.0 0.0 1.0 2.0 0.0 1.0 2.0 0.0 1.0 2.0
> 0.0 0.0 0.0 1.0 1.0 1.0 0.0 0.0 0.0 1.0 1.0 1.0
> 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
>
> The grid is a 3D one, it has one block with size 3x2x2 and the format is
> ASCII. I can read this file into Tecplot without any problem but when I try
> to read it into Paraview 3.98 I get the following error:
>
> ERROR: In
> /Users/kitware/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release-NoMPI/paraview/src/paraview/ParaViewCore/VTKExtensions/Default/vtkFileSeriesReader.cxx,
> line 690
>
> vtkFileSeriesReader (0x11713e850): Inputs are not set.
>
> What is wrong, the file itself or the PLOT3D reader of Paraview?
>
> Thank you,
>
> Nikos
>
> _______________________________________________
> Powered by <A HREF="http://www.kitware.com">www.kitware.com</A>
>
> Visit other Kitware open-source projects at
> <A HREF="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</A>
>
> Please keep messages on-topic and check the ParaView Wiki at:
> <A HREF="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</A>
>
> Follow this link to subscribe/unsubscribe:
> <A HREF="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</A>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <<A HREF="http://www.paraview.org/pipermail/paraview/attachments/20130314/ea016c7b/attachment-0001.htm">http://www.paraview.org/pipermail/paraview/attachments/20130314/ea016c7b/attachment-0001.htm</A>>
------------------------------
Message: 3
Date: Thu, 14 Mar 2013 12:20:49 GMT
From: Anton Shterenlikht <<A HREF="mailto:mexas@bristol.ac.uk">mexas@bristol.ac.uk</A>>
Subject: [Paraview] help with pvpython commands
To: <A HREF="mailto:paraview@paraview.org">paraview@paraview.org</A>
Message-ID:
<<A HREF="mailto:201303141220.r2ECKnAG031993@mech-cluster241.men.bris.ac.uk">201303141220.r2ECKnAG031993@mech-cluster241.men.bris.ac.uk</A>>
I'm trying to follow this example:
Example 2
In the second example the python script reads a raw binary file with 3Dimensional data and creates a contour at the values 0.1 and -0.1. A Colour bar is also provided.
from paraview.servermanager import *
Connect()
reader=sources.ImageReader(FilePrefix="phi-120000")
reader.DataByteOrder=1
reader.DataExtent[1]=511
reader.DataExtent[3]=1023
reader.DataExtent[5]=511
reader.DataScalarType=10
view=CreateRenderView()
view.Background=[0.3249412, 0.34902, 0.427451]
rep=CreateRepresentation(reader,view)
rep.Representation=3
rep.ColorAttributeType=0
cont1=filters.Contour(Input=reader)
cont1.ComputeScalars=1
cont1.ComputeNormals=0
cont1.ContourValues=[-0.1,0.1]
cont1.SelectInputScalars="ImageFile"
rep2=CreateRepresentation(cont1,view)
rep2.ColorArrayName="ImageFile"
rep2.SelectionColor=[1,0,1]
rep2.ColorAttributeType=0
lt=rendering.PVLookupTable()
lt.RGBPoints=[-0.1,0.1381,0.2411,0.7091,0.1,0.6728,0.1408,0.1266]
lt.ColorSpace=3
rep2.LookupTable=lt
sb=rendering.ScalarBarWidgetRepresentation()
sb.Position=[0.80,0.15]
sb.Title="ImageFile"
sb.Enabled=1
sb.LookupTable=lt
view.Representations.append(sb)
view.StillRender()
view.ResetCamera()
view.StillRender()
view.WriteImage("PHI-result.png","vtkPNGWriter")
from
<A HREF="http://www.hector.ac.uk/support/documentation/userguide/tools.php#paraview">http://www.hector.ac.uk/support/documentation/userguide/tools.php#paraview</A>
Where and how can I get help on each of these functions?
I can do e.g. help(ImageReader) in pvpython, but
that doesn't help much. I'm not even sure what's
sources.ImageReader.
Where shall I start?
Thanks
Anton
------------------------------
Message: 4
Date: Thu, 14 Mar 2013 15:28:50 GMT
From: Anton Shterenlikht <<A HREF="mailto:mexas@bristol.ac.uk">mexas@bristol.ac.uk</A>>
Subject: [Paraview] TypeError: WriteImage() takes exactly 3 arguments
(1 given)
To: <A HREF="mailto:paraview@paraview.org">paraview@paraview.org</A>
Message-ID:
<<A HREF="mailto:201303141528.r2EFSoZp038882@mech-cluster241.men.bris.ac.uk">201303141528.r2EFSoZp038882@mech-cluster241.men.bris.ac.uk</A>>
I get this error:
>>> view.WriteImage("z.png")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/paraview-3.10/site-packages/paraview/servermanager.py", line 331, in __ConvertArgumentsAndCall
retVal = func(*newArgs)
TypeError: WriteImage() takes exactly 3 arguments (1 given)
>>>
The tutorial suggests that just the filename is enough:
<A HREF="http://paraview.org/Wiki/ParaView/Python_Scripting">http://paraview.org/Wiki/ParaView/Python_Scripting</A>
Anyway, I can see in other examples that the second argument
is the file format, e.g.:
view.WriteImage("z.png","vtkPNGWriter")
but this gives the same error:
>>> view.WriteImage("z.png","vtkPNGWriter")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/paraview-3.10/site-packages/paraview/servermanager.py", line 331, in __ConvertArgumentsAndCall
retVal = func(*newArgs)
TypeError: WriteImage() takes exactly 3 arguments (2 given)
>>>
I cannot find what the third argument must be.
Please help
Anton
------------------------------
Message: 5
Date: Thu, 14 Mar 2013 15:49:00 GMT
From: Anton Shterenlikht <<A HREF="mailto:mexas@bristol.ac.uk">mexas@bristol.ac.uk</A>>
Subject: [Paraview] SOLVED: TypeError: WriteImage() takes exactly 3
arguments (1 given)
To: <A HREF="mailto:paraview@paraview.org">paraview@paraview.org</A>
Message-ID:
<<A HREF="mailto:201303141549.r2EFn0nQ039021@mech-cluster241.men.bris.ac.uk">201303141549.r2EFn0nQ039021@mech-cluster241.men.bris.ac.uk</A>>
From mexas Thu Mar 14 15:28:50 2013
To: <A HREF="mailto:paraview@paraview.org">paraview@paraview.org</A>
Subject: TypeError: WriteImage() takes exactly 3 arguments (1 given)
Reply-To: <A HREF="mailto:mexas@bristol.ac.uk">mexas@bristol.ac.uk</A>
I get this error:
>>> view.WriteImage("z.png")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/paraview-3.10/site-packages/paraview/servermanager.py", line 331, in __ConvertArgumentsAndCall
retVal = func(*newArgs)
TypeError: WriteImage() takes exactly 3 arguments (1 given)
>>>
The tutorial suggests that just the filename is enough:
<A HREF="http://paraview.org/Wiki/ParaView/Python_Scripting">http://paraview.org/Wiki/ParaView/Python_Scripting</A>
Anyway, I can see in other examples that the second argument
is the file format, e.g.:
view.WriteImage("z.png","vtkPNGWriter")
but this gives the same error:
>>> view.WriteImage("z.png","vtkPNGWriter")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/paraview-3.10/site-packages/paraview/servermanager.py", line 331, in __ConvertArgumentsAndCall
retVal = func(*newArgs)
TypeError: WriteImage() takes exactly 3 arguments (2 given)
>>>
I cannot find what the third argument must be.
Please help
Anton
Answering my own question, it seems different
help is provided in servermanager and in simple
modules. If I load servermanager, I get:
>>> help (WriteImage)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'WriteImage' is not defined
>>>
But if I load simple, I get:
>>> from paraview.simple import *
paraview version 3.10.1, Date: 2011-01-28
>>> help (WriteImage)
Help on function WriteImage in module paraview.simple:
WriteImage(filename, view=None, **params)
Saves the given view (or the active one if none is given) as an
image. Optionally, you can specify the writer and the magnification
using the Writer and Magnification named arguments. For example:
WriteImage("foo.mypng", aview, Writer=vtkPNGWriter, Magnification=2)
If no writer is provided, the type is determined from the file extension.
Currently supported extensions are png, bmp, ppm, tif, tiff, jpg and jpeg.
The writer is a VTK class that is capable of writing images.
Magnification is used to determine the size of the written image. The size
is obtained by multiplying the size of the view with the magnification.
Rendering may be done using tiling to obtain the correct size without
resizing the view.
>>>
So I got it working now.
Anton
------------------------------
_______________________________________________
Powered by <A HREF="http://www.kitware.com">www.kitware.com</A>
Visit other Kitware open-source projects at <A HREF="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</A>
Please keep messages on-topic and check the ParaView Wiki at: <A HREF="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</A>
Follow this link to subscribe/unsubscribe:
<A HREF="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</A>
End of ParaView Digest, Vol 107, Issue 34
*****************************************
</PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>