<div dir="ltr">Hello,<div><br></div><div>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 (<u>see attached figures</u>).</div>
<div><br></div><div>The coordinates of both the grid and the points are simply converted from spherical lon/lat/radius=1 to cartesian xyz.</div><div><br></div><div>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:</div>
<div><br></div><div><div> <Grid Name="Mesh" GridType="Uniform"></div><div> <Time Value="%f" /></div><div> <Topology TopologyType="3DSMesh" NumberOfElements="{0} {1} {2}"/></div>
<div> <Geometry GeometryType="XYZ"></div><div> <DataItem Name="Coordinates" Dimensions="{3} {4}" NumberType="Float" Precision="4" Format="HDF"></div>
<div> PATH_TO_XYZ</div><div> </DataItem></div><div> </Geometry></div><div> </div><div> <Attribute Name="DATA_NAME" AttributeType="Scalar" Center="Cell"></div>
<div> <DataItem Dimensions="{5} {6} {7}" NumberType="Float" Precision="4" Format="HDF"></div><div> PATH_TO_DATA</div><div> </DataItem></div><div> </Attribute></div>
<div> </Grid></div><div><br></div><div>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?</div>
<div><br></div><div>I appreciate any help!</div><div>-fernando</div><div><br></div><div><br></div><div><img src="cid:ii_146d9abe7c5ab31b" alt="Inline image 1" width="303" height="284"><br></div><div><br></div><div><img src="cid:ii_146d9ac145be4471" alt="Inline image 2" width="317" height="290"><br>
</div><div><br></div><div><br></div>-- <br>Fernando Paolo<br>Institute of Geophysics & Planetary Physics<br>Scripps Institution of Oceanography<br>University of California, San Diego<br><br>web: <a href="http://fspaolo.net" target="_blank">fspaolo.net</a>
</div></div>