[Paraview] Animating the 3D raw binary data in sequence

David E DeMarle dave.demarle at kitware.com
Thu Jun 14 16:34:35 EDT 2012


See: Reading a time varying Raw file into Paraview
On: http://paraview.org/Wiki/Data_formats

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909


On Thu, Jun 14, 2012 at 1:02 PM, Rakesh Dhote <rakesh.dhote at gmail.com> wrote:
> Hi,
>
> I am looking for a help in animating the 3D raw binary data files.
> The files are named as u1.0, u1.1, u1.2, ... and the file details are
> provided below.
> To animate, I tried to use the fileprefix as 'u1' and file pattern  as
> '%s.%d', but found that it does not work.
> Could you please share your expertise in animating the raw binary files in
> a an ascending order of the file names?
>
> File details:
>
> try: paraview.simple
> except: from paraview.simple import *
> paraview.simple._DisableFirstRenderCameraReset()
>
> u1_0 = ImageReader( FilePrefix='u1.0' )
>
> u1_0.DataExtent = [0, 128, 0, 128, 0, 1]
> u1_0.DataByteOrder = 'LittleEndian'
> u1_0.DataScalarType = 'float'
>
> RenderView1 = GetRenderView()
> DataRepresentation1 = Show()
> DataRepresentation1.ScalarOpacityUnitDistance = 7.108690992298187
> DataRepresentation1.Representation = 'Outline'
> DataRepresentation1.EdgeColor = [0.0, 0.0, 0.5000076295109483]
>
> RenderView1.CenterOfRotation = [63.5, 63.5, 0.5]
>
> a1_ImageFile_PVLookupTable = GetLookupTableForArray( "ImageFile", 1,
> NanColor=[0.4980392156862745, 0.4980392156862745, 0.4980392156862745],
> RGBPoints=[-0.009572385810315609, 0.0, 0.0, 1.0, 0.009394483640789986, 1.0,
> 0.0, 0.0], VectorMode='Magnitude', ColorSpace='HSV',
> ScalarRangeInitialized=1.0 )
>
> a1_ImageFile_PiecewiseFunction = CreatePiecewiseFunction()
>
> ScalarBarWidgetRepresentation1 = CreateScalarBar( Title='ImageFile',
> LabelFontSize=12, Enabled=1, LookupTable=a1_ImageFile_PVLookupTable,
> TitleFontSize=12 )
> GetRenderView().Representations.append(ScalarBarWidgetRepresentation1)
>
> RenderView1.CameraPosition = [63.5, 63.5, 347.4758305723389]
> RenderView1.CameraFocalPoint = [63.5, 63.5, 0.5]
> RenderView1.CameraClippingRange = [342.51107226661554, 353.43296803092403]
> RenderView1.CameraParallelScale = 89.80395314238677
>
> DataRepresentation1.Representation = 'Surface'
> DataRepresentation1.ScalarOpacityFunction = a1_ImageFile_PiecewiseFunction
> DataRepresentation1.ColorArrayName = 'ImageFile'
> DataRepresentation1.LookupTable = a1_ImageFile_PVLookupTable
>
> Render()
>
> Thanks,
> Rakesh
> =========
>
> _______________________________________________
> 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 Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>


More information about the ParaView mailing list