[Paraview] Extract geographic coordinates from spherical data

Lester Anderson lester_anderson1963 at hotmail.com
Mon Mar 14 13:22:59 EDT 2011


Hello

I have a query and I am not sure of the best approach to resolve it.

I have a data set in spherical global coordinates generated from a geographic input matrix using the calculator function as below:

(coordsZ*cos(coordsX*3.14159265/180)*cos(coordsY*3.14159265/180))*iHat+(coordsZ*sin(coordsX*3.14159265/180)*cos(coordsY*3.14159265/180))*jHat+(coordsZ*sin(coordsY*3.14159265/180))*kHat

Wher X=Longitude, Y=Latitude and Z= Earth radius at different depths.

One point I noticed with this sphere grid is that is defined as an unstructured grid but I am unclear why? The longitudes range from 0-360 and perhaps it expects things in -180/180 format? I generated another sphere grid using the formula above and when it is sliced the spreadsheet shows the lat long values as well as the sphere coordinates: this grid has the normal geographic range on longitudes (-180/180) and is a structured curvilinear grid.

If I slice the unstructured grid all I get are the sphere coordinates and the values. How can I readily convert these back to geographic?

Thanks

Lester
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20110314/448bef48/attachment.htm>


More information about the ParaView mailing list