David,

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 (http://cfconventions.org/latest.html) that allows you to 
arbitrarily assign a Z coordinate to a 2D grid.

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.

-Ken

From: David Deepwell [mailto:ddeepw...@uwaterloo.ca]
Sent: Saturday, December 9, 2017 12:54 PM
To: Moreland, Kenneth <kmo...@sandia.gov>
Cc: David Deepwell <ddeepw...@uwaterloo.ca>; paraview@paraview.org
Subject: [EXTERNAL] Re: [Paraview] curvilinear CF conventions

Hi Ken,

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).

Cheers,
David



On Dec 9, 2017, at 11:34 AM, Moreland, Kenneth 
<kmo...@sandia.gov<mailto:kmo...@sandia.gov>> wrote:

David,

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.

-Ken

Sent from my iPad

On Dec 9, 2017, at 9:12 AM, David Deepwell 
<ddeepw...@uwaterloo.ca<mailto:ddeepw...@uwaterloo.ca>> wrote:
Hi all,

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.

Cheers,
David
_______________________________________________
Powered by www.kitware.com<http://www.kitware.com/>

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

Reply via email to