<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">David,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The ParaView netCDF/CF reader does support the coordinates specified in Section 5.2. As the name of that section implies, this specification of coordinates applies explicitly to latitude and longitude coordinates. The rational, as far as
 I can tell, is that the direction of each coordinate is determined by the “units” parameter being either latitude or longitude. (At least, this is how the ParaView reader identifies each coordinate.) Even if we were to generalize to non-lat/lon coordinates,
 this specification provides no mechanism for applying the height field that you want to apply.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">This limitation might seem weird, but you have to remember that the CF convention is designed for climate and forecast data and is therefore really geared toward geospatial coordinates. It is a testament to how well thought out the CF convention
 is that we are able to leverage it for so many different use cases, but sometimes you run into limitations of this nature.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">-Ken<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> David Deepwell [mailto:ddeepwell@uwaterloo.ca] <br>
<b>Sent:</b> Monday, December 11, 2017 7:16 PM<br>
<b>To:</b> Moreland, Kenneth <kmorel@sandia.gov><br>
<b>Cc:</b> David Deepwell <ddeepwell@uwaterloo.ca>; paraview@paraview.org<br>
<b>Subject:</b> [EXTERNAL] Re: [Paraview] curvilinear CF conventions<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi Ken, <o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">So section 5.2 (<a href="http://cfconventions.org/Data/cf-conventions/cf-conventions-1.7/cf-conventions.html#_two_dimensional_latitude_longitude_coordinate_variables">http://cfconventions.org/Data/cf-conventions/cf-conventions-1.7/cf-conventions.html#_two_dimensional_latitude_longitude_coordinate_variables</a>)
 doesn’t apply for arbitrary coordinate variables? I would have thought that it would be general and not just for latitude and longitude.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I have used the warp by scalar before, but I would prefer it if Paraview simply understood the geometry immediately. I have also found another method to adjust the grid which is quite good. The calculator has a Coordinate Results option
 which creates the vector field of the grid.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">David<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">On Dec 11, 2017, at 7:09 PM, Moreland, Kenneth <<a href="mailto:kmorel@sandia.gov">kmorel@sandia.gov</a>> wrote:<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">David,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">The way you are attempting to specify coordinates does not follow the CF convention. Your variables have a “coordinates” property that simply says “zc.” That is not sufficient in the CF convention to use that as a Z coordinate to add to
 the other independent coordinates. In fact, I cannot find any part of the CF convention (<a href="http://cfconventions.org/latest.html"><span style="color:purple">http://cfconventions.org/latest.html</span></a>) that allows you to arbitrarily assign a Z coordinate
 to a 2D grid.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">That said, accomplishing what you want is easy with ParaView. Just load your data like you are now (so it comes in as a flat rectilinear grid). Then run the “Warp By Scalar” filter and set the “Scalars” property to “zc”. That will apply
 the elevation to your data like you want.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">-Ken<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<div>
<p class="MsoNormal"><b>From:</b><span class="apple-converted-space"> </span>David Deepwell [<a href="mailto:ddeepwell@uwaterloo.ca">mailto:ddeepwell@uwaterloo.ca</a>]<span class="apple-converted-space"> </span><br>
<b>Sent:</b><span class="apple-converted-space"> </span>Saturday, December 9, 2017 12:54 PM<br>
<b>To:</b><span class="apple-converted-space"> </span>Moreland, Kenneth <<a href="mailto:kmorel@sandia.gov">kmorel@sandia.gov</a>><br>
<b>Cc:</b><span class="apple-converted-space"> </span>David Deepwell <<a href="mailto:ddeepwell@uwaterloo.ca">ddeepwell@uwaterloo.ca</a>>;
<a href="mailto:paraview@paraview.org">paraview@paraview.org</a><br>
<b>Subject:</b><span class="apple-converted-space"> </span>[EXTERNAL] Re: [Paraview] curvilinear CF conventions<o:p></o:p></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">Hi Ken,<span class="apple-converted-space"> </span><o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal">I’ve attached a file which I think satisfies the curvilinear CF conventions. The grid is 2 dimensional where the z coordinate (called zc) depends on the horizontal and vertical dimensions (x and z). <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal">Cheers,<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal">David<o:p></o:p></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><br>
<br>
<br>
<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal">On Dec 9, 2017, at 11:34 AM, Moreland, Kenneth <<a href="mailto:kmorel@sandia.gov"><span style="color:purple">kmorel@sandia.gov</span></a>> wrote:<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal">David,<span class="apple-converted-space"> </span><o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal">The netCDF/CF reader should be able to read curvilinear coordinates. There is not enough information in your email to determine whether the issue is with the ParaView reader or an issue with the data file. It would be helpful if you could
 send us an example file so we can replicate your problem.<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal">-Ken<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">Sent from my iPad<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
On Dec 9, 2017, at 9:12 AM, David Deepwell <<a href="mailto:ddeepwell@uwaterloo.ca"><span style="color:purple">ddeepwell@uwaterloo.ca</span></a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div id="x_divtagdefaultwrapper">
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#212121">Hi all,<br>
<br>
I have a netcdf file that follows the CF conventions in curvilinear (structured) coordinates. Paraview however doesn’t recognize the auxiliary variable as the grid variable on which the rest of the fields should be plotted on. I’m not sure if this a bug with
 paraview misinterpreting the CF convention or if I just happen to have an attribute missing that Paraview is looking for.<br>
<br>
Cheers,<br>
David</span><o:p></o:p></p>
</div>
</div>
</div>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal">_______________________________________________<br>
Powered by<span class="apple-converted-space"> </span><a href="http://www.kitware.com/"><span style="color:purple">www.kitware.com</span></a><br>
<br>
Visit other Kitware open-source projects at<span class="apple-converted-space"> </span><a href="http://www.kitware.com/opensource/opensource.html"><span style="color:purple">http://www.kitware.com/opensource/opensource.html</span></a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at:<span class="apple-converted-space"> </span><a href="http://paraview.org/Wiki/ParaView"><span style="color:purple">http://paraview.org/Wiki/ParaView</span></a><br>
<br>
Search the list archives at:<span class="apple-converted-space"> </span><a href="http://markmail.org/search/?q=ParaView"><span style="color:purple">http://markmail.org/search/?q=ParaView</span></a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview"><span style="color:purple">http://public.kitware.com/mailman/listinfo/paraview</span></a><o:p></o:p></p>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>