[Paraview] dem data

Jack Gundrum jsg3 at psu.edu
Mon Nov 5 15:01:51 EST 2007


Amy,
Thats exactly what I want but its not working. I have tried the "Clean 
to Grid" filter and the "Extract Surface" filter with the "Warp 
(scalar)" filter with no luck. I thought the header defined the data 
wrong and maybe I could redefine the header to treat the data as DEM 
data. In VTK the following works and I am trying to recreate it in 
Paraview - thanks.

# Create the geometry conneting the grid of location points
# at this point the surface is flat with an x-y grid of numbers
# (scalars) representing elevations
vtkGeometryFilter geom1
  geom1 SetInput [cropped GetOutput]

# Now warp the surface based on the scalar elevation values
# This creates the 3D mesh model of the terrain
vtkWarpScalar surface1
  surface1 SetInput [geom1 GetOutput]
  surface1 SetScaleFactor -.5

# calculate normals to the 3D mesh cells. This helps generate
# a smoother surface alter on
vtkPolyDataNormals mapnormals
  mapnormals SetInput [surface1 GetPolyDataOutput]
  mapnormals FlipNormalsOn



 Squillacote wrote:
> Hi Jack,
>
> Are you just trying to see your data as a height field rather than as 
> a 2D image? If so, then once you have your image data loaded into 
> ParaView, apply the "Clean to Grid" filter to it (to convert it to an 
> unstructured grid), and then apply the "Warp (scalar)" filter to 
> convert the scalar values to height.
>
> - Amy
>
> Moreland, Kenneth wrote:
>> Sorry, but I'm not exactly sure what question you are asking.  Do you
>> want to use ParaView to convert this back to dem format?  There is no
>> dem writer in VTK.  Someone will need to create one before ParaView is
>> able to write out dem files.
>>
>> -Ken
>>
>>  
>>> -----Original Message-----
>>> From: paraview-bounces+kmorel=sandia.gov at paraview.org
>>>     
>> [mailto:paraview-
>>  
>>> bounces+kmorel=sandia.gov at paraview.org] On Behalf Of Jack Gundrum
>>> Sent: Thursday, November 01, 2007 1:14 PM
>>> To: paraview at paraview.org
>>> Subject: [Paraview] dem data
>>>
>>> Hi,
>>> I have dem data that was placed in a VTK file format by someone
>>>     
>> working
>>  
>>> with VTK. I am trying to
>>> load it into paraview as terrain data because it is to large for VTK
>>>     
>> on
>>  
>>> any single workstation.  I am only posting the
>>> first 36 points out of the 36723600 points that are in one file. How
>>>     
>> do
>>  
>>> I recreate the dem terrain, paraview loads it
>>> as an image?
>>>
>>> # vtk DataFile Version 2.0
>>> elevation
>>> ASCII
>>> DATASET STRUCTURED_POINTS
>>> DIMENSIONS 6 6 1
>>> ORIGIN 0 0 0
>>> SPACING 1 1 1
>>> POINT_DATA 36
>>> SCALARS elevation float 1
>>> LOOKUP_TABLE default
>>> 550.95 550.62 550.39 550.23 550.08 549.92 549.76 549.61 549.45 549.24
>>> 548.91 548.74 548.73 548
>>> .73 548.51 548.29 548.13 548.24 548.35 548.4 548.39 548.45 548.56
>>>     
>> 548.72
>>  
>>> 548.84 548.88 548.92
>>> 548.95 548.99 549.03 549.07 549.1 549.14 549.18 549.3 549.34
>>>
>>> _______________________________________________
>>> ParaView mailing list
>>> ParaView at paraview.org
>>> http://www.paraview.org/mailman/listinfo/paraview
>>>     
>>
>>
>> _______________________________________________
>> ParaView mailing list
>> ParaView at paraview.org
>> http://www.paraview.org/mailman/listinfo/paraview
>>
>>   



More information about the ParaView mailing list