<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hi ken<br><br>Thanks for the pointers. If it is possible to load in a data file with Longitude, Latitude, and Radius (sphere) and convert the input grid to a x, y, z that would be great.<br><br>I had a look at the calculator filter but could not see what to use. Would the result be a spherical representation of the data?<br><br>I do have the data in netCDF and CSV files. I did try converting all the data to spherical coordinates for X, Y, Z but Paraview only worked to do Table to Points.<br><br>Thanks for the guidance<br><br>Lester<br><br><hr id="stopSpelling">From: kmorel@sandia.gov<br>To: lester_anderson1963@hotmail.com; paraview@paraview.org<br>Date: Tue, 10 Aug 2010 14:14:23 -0600<br>Subject: Re: [Paraview] Point data on/in sphere - converting to structured grid<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<title>Message body</title>
<font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">I’m confused as to why Table to Structured Grid won’t work. A structured grid has no problem representing data on regular longitude, latitude, and radius. If the coordinates are given in lon,lat,r, just use the calculator filter to convert them to x, y, z.<br>
<br>
If you were to ask what the ideal format for the data would be, I would suggest creating netCDF files using the COARDS or CF convention. It’s a much more efficient format than CSV and was specifically designed with geospatial data in mind. That said, this only makes sense if you have control over how your data is generated in the first place. I know of no easy way to convert CSV to netCDF.<br>
<br>
-Ken<br>
<br>
<br>
On 8/10/10 8:06 AM, "Lester Anderson" <<a href="http://lester_anderson1963@hotmail.com" target="_blank">lester_anderson1963@hotmail.com</a>> wrote:<br>
<br>
</span></font><blockquote><font size="2"><font face="Tahoma, Verdana, Helvetica, Arial"><span style="font-size: 10pt;">Hello all<br>
<br>
I have made a start with building the global mantle model. Because the data are referenced to the Sphere, it is not possible<br>
to do the import of CSV using Table_to_Structured Grid and so I had to use Table_to_Points (see attached image).<br>
<br>
The plot shows point data 50 depths 50-1600 km (final layers extend to 2800 km). The spatial distribution of data is 1 x 1 degree, and each layer increment is 50 km (eg 50, 100, 150 ... 2800) - data converted to X,Y,Z coordinates. As such it would seem that one could describe the data as being a structured grid with a curvilinear geometry.<br>
<br>
Is there a way to convert or reformat the data (in Paraview .pvd format) to a cell-based geometry given that one has the values and coordinates of each "cell" from the point data?<br>
<br>
I did have a quick try of Delauny3D but it crashed Paraview (3.8.0)<br>
<br>
If there is a more efficient way of dealing with the CSV file that would be useful to know.<br>
<br>
Thanks<br>
<br>
Lester <br>
</span></font></font></blockquote><font size="2"><font face="Tahoma, Verdana, Helvetica, Arial"><span style="font-size: 10pt;"><br>
</span></font><span style="font-size: 10pt;"><font face="Consolas, Courier New, Courier"><br>
**** Kenneth Moreland<br>
*** Sandia National Laboratories<br>
*********** <br>
*** *** *** email: <a href="http://kmorel@sandia.gov" target="_blank">kmorel@sandia.gov</a><br>
** *** ** phone: (505) 844-8919<br>
*** web: <a href="http://www.cs.unm.edu/%7Ekmorel" target="_blank">http://www.cs.unm.edu/~kmorel</a><br>
</font></span></font><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;"><br>
</span></font>                                            </body>
</html>