Re: [Paraview] VTK classes not found in paraview

2017-05-23 Thread Favre Jean
Florian #Edit your script, go to the following line transform1.Transform.Scale = [0.999, 0.997, 0.999] # and add one line transform1.UpdatePipeline() # ;-) #- #Jean/CSCS ___ Powered by

Re: [Paraview] VTK classes not found in paraview

2017-05-18 Thread Favre Jean
Dorian it is a frequent error to forget to set the RequestInformationScript of the ProgrammableFilter. I have quickly hacked your code to make it work and give it here as an example to be polished further. try to load the following python script. - Jean/CSCS from

Re: [Paraview] Help on SPHVolumeInterpolator

2017-03-15 Thread Favre Jean
Carola the answer is "soon". ParaView's GUI already enables the setting of the so-called Cuttoff Array. In the GUI (I am assuming you use version 5.3), there should be a setting for the Density and the Mass arrays. And just below it, is the 3rd setting for the "smooting length" array.

Re: [Paraview] mesh file with a core dump

2017-02-07 Thread Favre Jean
Dear Umut Your cell index count is wrong. the correct numbers should be CELLS 48 368 N.B. 16*5 + 32*9 = 368 - Jean/CSCS ___ Powered by www.kitware.com Visit other Kitware open-source projects at

[Paraview] PlotSelectionOverTime and transient set of particles

2017-02-07 Thread Favre Jean
Hi there I have a time-dependent set of particles(stored as 1 cell of type VTK_POLY_VERTEX). Particles are born and die during the simulation. But they have a unique Id. I use it as a "GlobalNodeIds" array. I want to plot the time history of particles based on their Id. Pretty simple, you'd

Re: [Paraview] Time Source for Data Arrays

2017-01-25 Thread Favre Jean
I have examined Utkarsh's example because it is similar to one of my projects. Thanks. Yet, I am sorry to say I cannot execute it cleanly, without a small edit. I run PV 5.2. I execute script.py from the Python Shell. An image of the can is displayed, yet what is not working is that the

Re: [Paraview] Subject: Problem setting extents in parallel programmable source

2016-12-15 Thread Favre Jean
Sorry you had such trouble. Here is an example you can play with. It generates a Rectilinear Grid, in parallel, on any number of MPI tasks. You set the dims[] array, and ParaView does the splitting. Tested with 5.2. - Jean M. Favre Swiss National Supercomputing Center CH-6900

Re: [Paraview] Catalyst issue with pvti output.

2016-08-25 Thread Favre Jean
Hello Andy The tip about using vtkCPInputDataDescription::SetWholeExtent() was perfect. It fixes the *pvti WholeExtents The image output issue was instead caused by overlapping graphics windows. I have been testing on my workstation where a separate OpenGL window is opened for each MPI task.

[Paraview] Catalyst issue with pvti output.

2016-08-24 Thread Favre Jean
Hello Catalyst developers I have my first parallel simulation interfaced with Catalyst live. I use PV 5.1.2 While the live display has all the pieces, with the correct sub-extents, and the renderview shows the full grid without any missing piece, I find that the Parallel Image Data Writer

Re: [Paraview] Import Raw (binary) Files as Cell Data

2016-08-22 Thread Favre Jean
I personally favor the use of XDMF to import raw binary data. This gives the flexibility to import cell-data and/or node-data the XDMF code most likely to work for your example is the following: Given your binary data stored in file "rawdata.bin", double-length floating point, with 4x4x5

Re: [Paraview] use pv-meshless

2016-06-08 Thread Favre Jean
>>Could you give me any recommendation? yes, I can: see Utkarsh's posting: << ParaView 5.1.0-RC1 has been tagged. Git tag name: v5.1.0-RC1 Source tar/zip files are available for download: http://www.paraview.org/download/ Binaries will be available for testing within the next few days.

Re: [Paraview] use pv-meshless

2016-06-08 Thread Favre Jean
My advice is that you use the new features of ParaView master branch. it includes new SPH interpolators under the Category "Filters->Point Interpolation". You have the choice to sample you rPSH points onto a high resolution 1D line, a 2D cutting plane, or a 3D volume. - Jean/

Re: [Paraview] Problems about calculate the difference between two datasets

2016-05-23 Thread Favre Jean
>> Beware of the order of the input, they will be ordered randomly by paraview, Mathieu, could you please comment on that statement, "randomly"? I was always under the understanding that the order used by ParaView reflects the order of selection (a series of ctrl-right mouse clicks in the

Re: [Paraview] Spanwise averaging onto a slice

2016-05-19 Thread Favre Jean
the following article discusses averaging techniques, such as a 3D longitudinal averaging, which is what you are looking for. looping over your multi-blocks should be a rather simple extension. https://blog.kitware.com/paraviews-python-programmable-filters-in-geophysics/ -

Re: [Paraview] question-filter

2016-04-07 Thread Favre Jean
I recommend using the IntegrateVariables filter which will give the correct answer for wedges and pyramids. The output is put into an unstructured mesh with a single vertex cell, holding the "Volume" in its Cell Data. The implemented is in vtkIntegrateAttributes which triangulates the

[Paraview] GenerateGhostArray in a programmable source

2016-02-22 Thread Favre Jean
I am prototyping an AMR output, using programmable source. having trouble setting up the GhostArray. The following returns None: grid0 = vtk.vtkUniformGrid() grid0.GenerateGhostArray(exts, True) ga = grid0.GetCellGhostArray() I am setting it this way instead of using vtkAMRBox because my

Re: [Paraview] Cut plane average velocity over time

2016-02-16 Thread Favre Jean
>> I would like to get an average over an entire cut plane (over time). David This sounds like a perfect case for a Python Programmable Filter, looping over timesteps, accumulating data, doing the average, and setting it as a new field. Here is a script I have tested on a single block of data

Re: [Paraview] Paraview 5.0.0 with OSPRray plugin ...

2016-01-27 Thread Favre Jean
I checked out ospray release-0.9, and the dev branch of pvOSPRay and do not have issue other than the high memory cost. - Jean/CSCS ___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [Paraview] Can ParaView create "envelope" or cumulative maximums?

2015-12-04 Thread Favre Jean
Incidentally, I tried to achieve this with a Python programmable filter since that was Alan's question. I did not succeed. I am removing the TIME_STEPS() and TIME_RANGE() in the RequestInformationScript script. I am setting a different UPDATE_TIME_STEP() at each iteration of the

Re: [Paraview] netcdf-4 structured grid in paraview

2015-12-01 Thread Favre Jean
I have tested the following solution which consists in using a Python programmable filter, copying the non-spatial data attributes, and creating a new coordinate array with the spatial attributes (x, x and z) see the included python code. I suggest using ParaView 4.4 or 5.0RC1. Note that the

Re: [Paraview] netcdf-4 structured grid in paraview

2015-12-01 Thread Favre Jean
What you need can be simply implemented with a Python Programmable Filter, extracting the 3 coordinate arrays from the PointData fields, making a vector with algs.make_vector(), assigning it to output.Points, and appending all the other attributes from inputs[0].PointData if you supply a small

Re: [Paraview] Extracting a block from a vtkMultiBlockDataSet in Paraview (Bug?)

2015-11-25 Thread Favre Jean
You are missing a RequestInformation Script to indicate the dimensions of the grid you wish to create. Set the type of the Output Data to "vtkStructuredGrid" you will need, at the minimum, the following two sections of python code in the "Script" mbds = inputs[0] block0 = mbds.GetBlock(0)

Re: [Paraview] Time Steps - possible bug?

2015-09-10 Thread Favre Jean
>> Sources -> Programmable Source -> Choose vtkTable as Output Data Set Type Programmable Sources have no input. What you probably wish to use is a Programmable Filter Jean/CSCS ___ Powered by www.kitware.com Visit other Kitware open-source projects

[Paraview] SC '15 Scientific Visualization Showcase

2015-08-10 Thread Favre Jean
Folks, there has been several requests to push the deadline for submission of the Supercomputing`15 Scientific Visualization Showcase; A new and final deadline for submission has been set to 2015-08-21 23:59, AOE see details at;

[Paraview] CFP: SC '15 Scientific Visualization Showcase

2015-07-27 Thread Favre Jean
Folks We have some great news. The deadline for submission has been pushed back to August 7. Take advantage of the extra time to submit the best visualizations ever. Jean, SC15, Scientific Visualization Showcase Chair From: ParaView

Re: [Paraview] running parallel pvservers

2015-07-24 Thread Favre Jean
putting the following code in your ScriptRequestInformation should tell ParaView that you can handle sub-divisions: executive = self.GetExecutive () outInfo = executive.GetOutputInformation(0) outInfo.Set(vtk.vtkAlgorithm.CAN_PRODUCE_SUB_EXTENT(), 1) it is then up to you, to correctly handle

Re: [Paraview] [Xdmf] Fwd: Problem with opening Xdmf file in Paraview

2015-06-23 Thread Favre Jean
you have one error in the definition of the topology. the first line wrongly defines the Dimensions as 54653 4 Topology Dimensions=54653 4 TopologyType=Tetrahedron the correct syntax is: Topology Dimensions=54653 TopologyType=Tetrahedron as in: Topology Dimensions=54653

Re: [Paraview] Do Paraview support the parallel of ply file ?

2015-04-17 Thread Favre Jean
I have just a few days ago gotten to the same conclusion. Reading some large PLY files on our Cray nodes which only have 32Gb of memory, I would run out of memory and crash. Checking memory usage with the Memory Inspector will show that everything is loaded on rank 0. Using the D3 filter

Re: [Paraview] numpy-ParaView for surface

2015-04-14 Thread Favre Jean
The same example can be trivially done in ParaView using a ProgrammableSource programmableSource1 = ProgrammableSource() programmableSource1.OutputDataSetType = 'vtkImageData' programmableSource1.Script = 'import numpy as np\nimport zipfile\n\nexecutive = self.GetExecutive()\noutInfo =

[Paraview] Find Data at first timestep to use as selection

2015-03-03 Thread Favre Jean
Hi there I have particle data, which I read with the H5PartReader plugin I need to extract the particles whose distances from an x axis offset are within a given threshold on the first timestep, and then follow only these as time goes on. the first thing is trivial. I use a python calculator

Re: [Paraview] Python script - change font color

2015-02-26 Thread Favre Jean
#Suppose you're displaying a variable called scalar scalarLUT = GetColorTransferFunction('scalar') view = GetRenderView() sBAR = GetScalarBar(scalarLUT, view) sBAR.LabelColor=[0.,0.,0.] Render() - Jean/CSCS ___ Powered by

Re: [Paraview] .cube files in pvbatch

2015-01-30 Thread Favre Jean
try this: bk2_cube = GaussianCubeReader( guiName=bk2.cube, FileName='/sandbox/bk2.cube' ) contour1 = Contour(Input=servermanager.OutputPort(bk2_cube, 1)) - Jean/CSCS ___ Powered by www.kitware.com Visit other Kitware open-source

[Paraview] reading time series of PLY files

2015-01-12 Thread Favre Jean
Hello List I cannot find information about reading a collection of binary time-dependent PLY files. My files are numbered with leading zeroes and *.ply extension the GUI shows me filename-00* but ParaView does not recognize the series as a time collection. It only shows the first file.

Re: [Paraview] PV 420 unable to read state file from PV 410

2014-10-01 Thread Favre Jean
as discussed with Utkarsh, this is most likely related to a bug about structured extents in version 4.2 I created a reproducer and filled a bug http://www.paraview.org/Bug/view.php?id=15022 - Jean/CSCS ___ Powered by www.kitware.com

Re: [Paraview] Python Scripting - Slicing Data

2014-09-17 Thread Favre Jean
I'd recommend you use the Trace tools to see how to write the python code. Get your data, apply the slice filter, and see how its arguments are set. you'll end up with something like: data = PhastaReader(FileName=view.pht) Show(data) slice = Slice(Input=data) slice.SliceType = 'Plane'

Re: [Paraview] compiling ParaView v4.2.0-RC1-75-gf64ee7a with -DModule_vtkIOXdmf3:BOOL=ON

2014-09-17 Thread Favre Jean
thanks for the tip. I got the new reader compiled, but I am disappointed to see that it crashes immediately on my existing data (which can be read in parallel, with the old xdmf2 reader). ERROR: In /apps/pilatus/ParaView/src/ParaView/VTK/Common/Core/vtkDataArrayTemplate.txx, line 148

Re: [Paraview] connectivity errors

2014-07-09 Thread Favre Jean
I had the same crash yesterday on our Cray XC30 while connecting a 4.1 client with a 4.2 server. Everything worked fine (i.e. I am now using the latest git checkout) after I updated both sides. - Jean CSCS ___ Powered by

Re: [Paraview] PointSprite seg faulting in client-server mode

2014-07-04 Thread Favre Jean
here is a follow-up. I installed the latest git checkout on our Cray, and I can now do Point Sprite rendering. I tested with 8.5 billion particles on 128 GPUs. I still see some error message, but it is not breaking and not stopping me. That error message comes from the client on my desktop.

[Paraview] PointSprite seg faulting in client-server mode

2014-07-03 Thread Favre Jean
Hi there I am using PV4.1 on a GPU-based machine, in client-server mode (remote render threshold=0). LIC, as another example of a GPU-enabled representation, works fine. But when I try the PointSprite plugin, I get a seg fault. I even tried a single task pvserver, and it always seg faults. my

Re: [Paraview] CRAY building with cray-mpich2

2014-07-01 Thread Favre Jean
We're running ParaView on our Cray XC30, with GPU rendering here's my cmake line: cmake -DMPI_C_COMPILER=/opt/cray/craype/2.1.0/bin/cc -DMPI_CXX_COMPILER=/opt/cray/craype/2.1.0/bin/CC -DMPI_CXX_LIBRARIES=/opt/cray/mpt/6.3.0/gni/mpich2-gnu/48/lib/libmpichcxx.so

Re: [Paraview] paraview HDF5/XDMF: how to control memory usage?

2014-06-10 Thread Favre Jean
Allow me to add my 2 cents to this thread, since Dave talks about a new generation xdmf reader/writer in the making. I too use a series of files for each timestep ( one XMF file and one HDF5 file per step), since I have discovered that creating temporal collections does not work correctly if

[Paraview] Manage Plugin issues with auto-load

2014-05-15 Thread Favre Jean
hello I have multiple production machines where PV is installed, some with GPUs, some with mesa-rendering. Even so, operating systems differ on the different machines. The problem I have is that PV is installed in application directories on a filesystem shared by all production machines. And

Re: [Paraview] Need Programmable Source Help

2014-03-28 Thread Favre Jean
Josh you'll find details here: http://paraview.org/Wiki/ParaView/Simple_ParaView_3_Python_Filters I am guessing that what you really want to create is a regular cartesian grid your example, would look like that: Get a programmable Source Set the output type to vtkImageData fill in the Script

[Paraview] reverse connect from python?

2014-03-14 Thread Favre Jean
Hello I have some reverse-connect configurations running very smoothly from the paraview GUI. I would now like to add the Connect() call in my python scripts to make everything fully automatic, but cannot find out if it is possible.

[Paraview] error loading server-side plugin

2014-03-11 Thread Favre Jean
Folks I have a paraview installed on a server, without the GUI compiled, i.e. only pvserver, and pvbatch. Without any error, I can use my desktop pvpython, and do from paraview.simple import * paraview version 4.1.0 Connect(pilatus25.abc.abc.ch) Connection (cs://pilatus25.abc.abc.ch:1) [2]

[Paraview] ParaView 4.1.0 server-side reader plugin

2014-01-16 Thread Favre Jean
Nice work on releasing 4.1! Thanks to all. I read with interest the discussion about server-side plugins, and modified my custom plugins accordingly. http://www.kitware.com/blog/home/post/594 installed a windows 64-bit pre-compiled, connected to my server, and indeed, I can visualize custom

[Paraview] OpacityTableValues

2014-01-07 Thread Favre Jean
I am using the RC2, but am puzzled by the following: I can run paraview and create a sphere, and in the python shell, I do this (without any problem) s = FindSource('Sphere1') dp = GetDisplayProperties(s) dp.OpacityTableValues I use save state and the python code sets OpacityTableValues if

Re: [Paraview] OpacityTableValues

2014-01-07 Thread Favre Jean
Utkarsh you are right about OpacityTableValues coming from the PointSprite plugin. What really caught me is the fact that my script only works if I load the PointSprite plugin last. I used to have the following lines (which create the error)

Re: [Paraview] OpacityTableValues

2014-01-07 Thread Favre Jean
cut and paste error in my previous mail: I used to have the following lines (which create the error) LoadPlugin(/local/apps/ParaView-v4.1.0Build/lib/libPointSprite_Plugin.so, ns=globals()) LoadPlugin(/local/apps/ParaView-v4.1.0Build/lib/libH5PartReader.so, ns=globals()) I then reverted the

Re: [Paraview] A thank you...

2013-12-02 Thread Favre Jean
I'd be interested to know if your simulation uses a Yin-Yan grid configuration and if you have a native reader for it, or if you are using a different grid setup, maybe icosahedron, or tetrahedron, etc... I have worked with scientists doing similar simulations of mantle convection with the

[Paraview] Multiple GPUs Per Node

2013-09-30 Thread Favre Jean
I read on the wiki about a script to execute and display the hostname and DISPLAY of each rank of a parallel pvserver job. import os import subprocess display = os.getenv('DISPLAY') hostname = subprocess.Popen(['hostname'], stdout=subprocess.PIPE).communicate()[0].strip() print hostname,

Re: [Paraview] Multiple GPUs Per Node

2013-09-30 Thread Favre Jean
Bingo! using '/bin/hostname' did the trick. thanks Utkarsh. - Jean ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check

[Paraview] ParticlesPathes too short?

2013-04-16 Thread Favre Jean
Hello there, I have a time-dependent dataset with 1467 timesteps, going from t=0.0 to t=7.3 with fixed increments of 0.005 seconds I am only partly successful in using ParticlePath. The pathes drawn are too short. I have seen the previous postings but did not find much help. Even though I set

[Paraview] Call for Papers: 18th International Workshop on Vision, Modeling and Visualization

2013-04-10 Thread Favre Jean
CALL FOR PAPERS VMV 2013 18th International Workshop on Vision, Modeling and Visualization September 11-13, 2013 Lugano, Switzerland Paper Submission Deadline: June 21, 2013 vmv2013.inf.usi.ch In Cooperation with Eurographics Association The VMV workshop series, which covers the fields of

[Paraview] vtkProbeFilter in Programmable Filter

2013-04-05 Thread Favre Jean
Hello where did the vtkProbeFilter go in 3.98? I cannot reproduce the example of the User Guide http://paraview.org/Wiki/index.php?title=ParaView/Users_Guide/Python_Programmable_Filter I need to use a Programmable Filter with a vtkProbeFilter to do an azimuthal average, giving it a circle

Re: [Paraview] [EXTERNAL] Geometric center of Dataset

2013-03-29 Thread Favre Jean
If you are looking for the Centroid of the dataset, then I would propose 3 lines of python in a Programmable Filter, using numpy's mean. Cut and paste in the script section of a PF: from paraview.vtk.dataset_adapter import numpyTovtkDataArray coords = inputs[0].Points print mean(coords)

[Paraview] connectivity of partitioned unstructured grid

2013-02-22 Thread Favre Jean
Hello I have an hexahedral grid, in a *vtu file. When read on a local client, the Connectivity filter *correctly* detects that there is a single region (with Extract All Regions). The same *vtu file, when read in parallel, shows multiple regions, with *some* region boundaries matching

[Paraview] collaboration multi-clients

2013-02-11 Thread Favre Jean
Hello folks what is the status of the multi-clients support in 3.98? I have tried different hosts, different setups and it always results in crashes, seg faults. I wanted to know if this is related to my setup, or some known issues.? The wiki page

Re: [Paraview] Can't change cube axes color

2012-05-29 Thread Favre Jean
I am seeing this bug too with my own compilation. Has there been a patch issued for it? TIA Jean ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages

Re: [Paraview] Download ParaView web page

2012-03-07 Thread Favre Jean
this is the URL I use: http://paraview.org/files/v3.14 - Jean ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the

[Paraview] crash when computing distributed streamlines with threshold

2012-01-06 Thread Favre Jean
Hello all I have been fighting all afternoon with a crash, which I can now avoid, or replicate on demand. Here is the scenario, a simple pipeline to do streamlines, runing with 16 pvservers, so everything is parallel. (version 3.12) XDMF reader - vector field omega is read Calculator -

[Paraview] crash with D3?

2011-11-21 Thread Favre Jean
Hello List after the migration from 3.10 to 3.12, we are experiencing crashes with D3 when using Duplicate cells and I wonder if anyone has had issues. I filled up a big report already a couple of weeks ago, but did not see any message relating problems.

Re: [Paraview] Doubt regarding the installation of Paraview in Unix like systems.

2011-10-26 Thread Favre Jean
The FindGIT.cmake file is only available with cmake version 2.8.5 or above. you are using cmake version 2.6.4 and you need to upgrade to a newer cmake. Jean CSCS ___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [Paraview] Problem with Pyton-Script: GetDisplayProperties fails...

2011-10-10 Thread Favre Jean
The culprit is not dp, but src GetActiveSource() most likely returns nothing use FindSource(name), or GetSources() - Jean M. Favre Swiss National Supercomputing Center ___ Powered by www.kitware.com Visit other Kitware open-source

[Paraview] Creation of new proxy vtkSMFileSeriesReaderProxy failed

2011-10-03 Thread Favre Jean
Hello List I am checking my private plugins, (compiled, and tested successfully under 3.10) under the RC2 for v3.12. Configuration, compilation show no warnings or errors. When loading manually, paraview crashes with the following message: Plugin's signature: paraviewplugin|GNU|3.12 Plugin

Re: [Paraview] How does one rescale CSVReader data via pvpython?

2011-09-16 Thread Favre Jean
Greg, sorry if I did not explain fully. After reading your data, it is the active source. if you instantiate a ProgrammableFilter (PF), it takes wake_out as its input. But you can also set it explicitly as the source. inside the PF, you have VTK objects, so you can use VTK methods. Here is a

Re: [Paraview] How does one rescale CSVReader data via pvpython?

2011-09-15 Thread Favre Jean
Greg, I would not use Fetch to do what you need. Here is something that should work: # reuse your wake_out proxy di = wake_out.GetDataInformation() rowInfo = di.GetRowDataInformation() # get largest magnitude value from column 2 rowInfo.GetArrayInformation(1).GetComponentRange(0)[1] #You

Re: [Paraview] Help getting resetting cameras between batch viz runs

2011-09-02 Thread Favre Jean
min,max = slice.PointData[0].GetRange() try this: slice. GetDataInformation().DataInformation.GetBounds() Jean CSCS ___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [Paraview] Issue with vtkStructuredGrid and ParaView

2011-06-09 Thread Favre Jean
Sounds like you are missing something like grid-SetWholeExtent(0,i-1, 0, j-1, 0, 0); - Jean M. Favre Swiss National Supercomputing Center ___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [Paraview] load state from python

2011-05-18 Thread Favre Jean
GetRenderView() actually creates a second view, and it is empty. That is what you see being rendered. to get the existing view after reloading your state, I suggest using SetActiveView(GetRenderViews()[0]) Render() and you will get your cone and your sphere. - Jean M. Favre

Re: [Paraview] accessing additional options on PV filter

2011-04-20 Thread Favre Jean
The Python shell can work. get your object: C = FindSource('Connectivity1') c.ListProperties() c.ColorRegions = 0 # or 1 c.ExtractionMode = 4 # or 5 all other values 1,2,3 require an additional list of seeds or options which are not available via python - Jean M. Favre Swiss

Re: [Paraview] Providing block names within .vtm files

2011-03-25 Thread Favre Jean
I believe the functionality is missing. I have looked for it for many years. I just put together a quick hack, which seems to work fine for me. No exhaustive testing was done. It works for my test data, which are multi-blocks of multi-blocks. It could be generalized to multi-pieces too. I'll

Re: [Paraview] File-Save Data from python

2011-02-23 Thread Favre Jean
w = CSVWriter() w.FileName = /local/data/tmp/foo.csv #s1 should be of type Table w.Input = s1 w.UpdatePipeline() - Jean M. Favre Swiss National Supercomputing Center ___ Powered by www.kitware.com Visit other Kitware open-source

Re: [Paraview] Python questions

2011-02-10 Thread Favre Jean
Hello James I don't believe this is a bug. I have used the ProgrammableSource and was able to render a grid without any difficulty. What is missing in your procedure is most likely setting the WholeExtent. try loading this script and you'll get a rendered image paraview --script=state.py

Re: [Paraview] Re : Re : Bug with CellDataToPointData and vtkMultiBlockDataSet ?

2010-12-13 Thread Favre Jean
I have large multi-level hierarchies of vtkMultiBlockDataSet with FieldData and I have tried to reproduce what you describe as a bug and was not able to do so. My FieldData was cleanly copied (passed over) when using PointDataToCellData followed by CellDataToPointData. My only idea is that

Re: [Paraview] Animate over files named by date time?

2010-12-10 Thread Favre Jean
use the python shell within paraview the following pseudo-code will get you almost there import glob files = glob.glob('foo_*.hdf') files.sort() # open the first file, set up your visualization, then get the object handle reader = FindSource('foo_1995-03-21T01-00-00.hdf') for i in files:

Re: [Paraview] reading a stack of TIFF images

2010-11-18 Thread Favre Jean
I suggest you look at readers.xml and look as the example for the PNGSeriesReader http://paraview.org/gitweb?p=ParaView.git;a=blob;f=Servers/ServerManager/Resources/readers.xml Note also that both the PNG and the JPEG readers are enabled as FileSeries. But one must understand the difference

Re: [Paraview] reading a stack of TIFF images

2010-11-18 Thread Favre Jean
[Please keep the discussion in the mailing list so that others can benefit from it.] The answer to the question raised below is that my PYTHONPATH includes both: /local/apps/ParaView3Build/Utilities/VTKPythonWrapping/site-packages and /local/apps/ParaView3Build/VTK/Wrapping/Python I tried

[Paraview] reading a stack of TIFF images

2010-11-17 Thread Favre Jean
Hi there this afternoon, I was asked to read a stack of TIFF images in ParaView. Well, I search the archive mailing list, tried different things which led me nowhere, and could not find a solution out of the box. I then worked on a Python script which now works very well for our purpose. I

Re: [Paraview] SC10 CoProcessing example

2010-11-16 Thread Favre Jean
From: paraview-boun...@paraview.org [paraview-boun...@paraview.org] On Behalf Of Andy Bauer [andy.ba...@kitware.com] Hi Chris, I just fixed the formatting for the python code snippets. As you noticed there were problems of tabs and spaces intermixed

Re: [Paraview] dashboards run with installed version?

2010-10-27 Thread Favre Jean
Turning PARAVIEW_INSTALL_THIRD_PARTY_LIBRARIES to OFF fixes my install issue. Thanks for the tip. btw, is there any reason the hdf5 libs get installed in /fullpath/lib instead of /fullpath/lib/paraview-3.9? There are the only libs being installed one level up (from the rest). Thanks Jean

[Paraview] vtkClientServerStream::InsertArray(temp20,4)

2010-10-23 Thread Favre Jean
Hi all I have the following definition for a home-made reader where I wish to pass 5 integers back to my python client. IntVectorProperty name=Windices command=GetWindices number_of_elements=5 default_values=0 0 0 0 0 information_only=1

Re: [Paraview] contour programmable filter

2010-10-06 Thread Favre Jean
The use of a programmable filter is perhaps more than you actually needed, now that you know how to get the range of the input. I would start simply with the Python shell, create a contour and create its representation like this: SetActiveSource(Input) # set your input here, if not already

Re: [Paraview] contour programmable filter

2010-09-25 Thread Favre Jean
Using the maximum value of any scalar field as the threshold for an isosurface will always give a null object. In fact, the smallest isosurface you could ever construct is a single triangle, intersecting 3 edges connecting one vertex greater than your threshold, and three other vertices below

Re: [Paraview] mapping unstructured grid onto regular grid

2010-09-11 Thread Favre Jean
___ I would like to map an unstructured grid (describing particle data with per particle attributes I would like interpolated onto the regular grid) onto a regular mesh. I am trying to use the 'Resample With Dataset' filter but have not been having much luck.

Re: [Paraview] Get Data Ranges in Python

2010-09-09 Thread Favre Jean
From: paraview-boun...@paraview.org [paraview-boun...@paraview.org] On Behalf Of Tim Mardall [...@mardall.info] Sent: Thursday, September 09, 2010 5:32 PM To: paraview@paraview.org Subject: [Paraview] Get Data Ranges in Python Hello, If I select an item

Re: [Paraview] Animating camera in batch mode

2010-09-03 Thread Favre Jean
I would like to be able to orientate the camera whilst running batch scripts for generating animations, as you can do in interactive mode. However, I'm stuck on what to use for the AnimatedProxy. I tried the following and I get an error message: #move

Re: [Paraview] Time dependent data : timestep read from file

2010-09-01 Thread Favre Jean
May I suggest the following syntax? use a file with suffic .pvd and describe the collection with the following list. You may specify all timestep values explicitly VTKFile type=Collection version=0.1 byte_order=LittleEndian Collection DataSet part=0 timestep=0 file=td_0.vtu/

Re: [Paraview] List to select zones in object panel for a custom reader

2010-09-01 Thread Favre Jean
Why is this any different from array-selection already provided by many readers? --- In my mind, it is quite different. At least for CFD applications, where a hierarchy of blocks is the general case. 2 cents from my side Jean ___ Powered by

[Paraview] XYPlotView issues

2010-08-24 Thread Favre Jean
Hello I am seeing a couple of difficulties in using the XYPlotView in python and pvbatch, using ParaView head (3.9) How does one specify the size of the image saved? By default, I get a 300x300 pixels image and that is not good enough, since the legend takes over much of the space. I did not

[Paraview] pvbatch hanging in parallel after WriteImage?

2010-08-19 Thread Favre Jean
i am having difficulty with pvbatch - compiled with Mesa 7.6 - running in parallel and hanging after the first WriteImage in my python scripts. I have tested several compilations on different clusters, several MPI (mvapich and openmpi) and still cannot make this work. It writes the first

Re: [Paraview] Coastline data for Paraview

2010-08-16 Thread Favre Jean
The file political.vtp from the VTKData directory has bounds between [-180, 180], [-90, +83], [0,0] and can be transformed to a spherical representation with the filters proposed last week. It has country names and regions and works well with the spreadsheet selection in paraview.

Re: [Paraview] Converting Longitude, latitude and Radius (distance) to XYZ (spherical coordinates) ‏

2010-08-13 Thread Favre Jean
I was trying the same exercise for fun, and I got it done with a Python Programmable Filter. When you import math, you also get math.pi Here is how I did it: 1) generate a structured grid with a programmable source and your given bounds 2) remap its coordinates with a programmable filter

Re: [Paraview] Loading coastline / continent data

2010-08-10 Thread Favre Jean
if you have enabled TESTING and you have the correct VTK_DATA_ROOT set up, you may want to try bin/HybridCxxTests TestTDxGeo -D /local/VTKData -V Baseline/Hybrid/TestTDxGeo.png -I The source code is in VTK/Hybrid/Testing/Cxx/TestTDxGeo.cxx - Jean M. Favre Swiss National

[Paraview] error with vtkAMRDualGridHelper

2010-06-25 Thread Favre Jean
I have my own reader for AMR data which produces only PointData, no CellData. When doing Contour (with a recent CVS version), I get errors like this, and then a crash: ERROR: In /local/data/jfavre/ParaView3/Servers/Filters/vtkAMRDualGridHelper.cxx, line 727 vtkAMRDualGridHelper (0x2abe6e0):

Re: [Paraview] Contours of streamlines crashing

2010-05-10 Thread Favre Jean
From: David Borland [borl...@renci.org] Sent: Monday, May 10, 2010 5:38 PM To: Favre Jean Cc: Zhanping Liu; paraview@paraview.org Subject: Re: [Paraview] Contours of streamlines crashing Yes, looks like I can't replicate it with RectGrid.vtk either

Re: [Paraview] Contours of streamlines crashing

2010-05-08 Thread Favre Jean
I am not able to reproduce a crash using ParaView 3.8RC2. Using the included Python script, you may play the scene for as long as you want. Modify the file name to read your own copy of RectGrid.vtk from the ParaViewData distribution. run with pvpython, and it will play for ever.

Re: [Paraview] Manta source code repository?

2010-05-06 Thread Favre Jean
- Jean M. Favre Scientific Computing Research Swiss National Supercomputing Center CH-6928 Manno Switzerland From: David E DeMarle [dave.dema...@kitware.com] Sent: Thursday, May 06, 2010 5:18 PM To: Favre Jean Cc: ParaView Subject: Re

Re: [Paraview] Extract Block from MultiBlock into vtkImageData

2010-04-30 Thread Favre Jean
From: paraview-boun...@paraview.org [paraview-boun...@paraview.org] On Behalf Of Eric E. Monson [emon...@cs.duke.edu] Sent: Thursday, April 29, 2010 5:40 PM To: Michael Jackson Cc: ParaView list Subject: Re: [Paraview] Extract Block from MultiBlock into

Re: [Paraview] [Feature request] Expanding PVD File Components

2010-04-28 Thread Favre Jean
From: paraview-boun...@paraview.org [paraview-boun...@paraview.org] On Behalf Of Olumide [50...@web.de] Sent: Wednesday, April 28, 2010 2:03 PM To: paraview@paraview.org Subject: Re: [Paraview] [Feature request] Expanding PVD File Components Thanks. Erm ... what does a *.vts file look like?

  1   2   >