[Paraview] Offset between grid and points on spherical projection

Fernando Paolo fspaolo at gmail.com
Thu Jun 26 15:36:54 EDT 2014


Hello,

I have a 2d grid projected on top of a spherical surface. On the same
surface, and on top of the grid, I am also projecting a set of points
delimiting the boundaries of the quantity in question. The problem is that
both the grid and the points when plotted together are displayed with an
offset in between them (in the "r" direction from the spherical
projection). Also interesting is the fact that when I change the angle of
view the "offset" also changes (*see attached figures*).

The coordinates of both the grid and the points are simply converted from
spherical lon/lat/radius=1 to cartesian xyz.

The points are projected using an UNSTRUCTURED GRID format (polydata ascii
file). And the grid is projected using the XDMF 3DSMesh, with the following
template:

   <Grid Name="Mesh" GridType="Uniform">
     <Time Value="%f" />
     <Topology TopologyType="3DSMesh" NumberOfElements="{0} {1} {2}"/>
     <Geometry GeometryType="XYZ">
       <DataItem Name="Coordinates" Dimensions="{3} {4}" NumberType="Float"
Precision="4" Format="HDF">
         PATH_TO_XYZ
       </DataItem>
     </Geometry>

     <Attribute Name="DATA_NAME" AttributeType="Scalar" Center="Cell">
       <DataItem Dimensions="{5} {6} {7}" NumberType="Float" Precision="4"
Format="HDF">
         PATH_TO_DATA
       </DataItem>
     </Attribute>
   </Grid>

If both datasets have a radius = 1, why is there any offset in between
them? Since this offset also changes with the angle of view, it seems that
both datasets are not being projected on top of the same spherical surface
(note: I've tried setting different radius for both datasets). How can I
fix this?

I appreciate any help!
-fernando


[image: Inline image 1]

[image: Inline image 2]


-- 
Fernando Paolo
Institute of Geophysics & Planetary Physics
Scripps Institution of Oceanography
University of California, San Diego

web: fspaolo.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20140626/9bd0e80c/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen shot 2014-06-26 at 11.54.19 AM.png
Type: image/png
Size: 26982 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview/attachments/20140626/9bd0e80c/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen shot 2014-06-26 at 11.50.28 AM.png
Type: image/png
Size: 24539 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview/attachments/20140626/9bd0e80c/attachment-0003.png>


More information about the ParaView mailing list