[Paraview] trouble reading in netCDF file

Joel Culina joel.culina at acadiau.ca
Tue Apr 6 20:02:07 EDT 2010


Hi,

Thank you Ken for responding.

I suspect that your diagnosis is correct; the root of the problem, I believe, is that I am reading in netCDF data that follows the CF convention.   In particular, the grid is an unstructured triangular 2D grid ('poly data' grid in the venacular of paraview).  The 'dimensions' variables include integer identifiers for triangle nodes, but NOT lat, long, x, y, time etc.  Rather, these are included among the 'variables' variables (e.g. lat = lat(node)).    

Is the problem indeed that the paraview netCDF reader cannot understand this particular netCDF-CF file?  Is there a way around this, without having to change the way the data is outputted (from netCDF-CF to netCDF-COARDS convention)?  Note that I can read into paraview certain variables by filtering out the 1-dimensional variables (lat, long etc.), but of course these variables do not have the correct dependencies (they should be dependent on the variables I filtered out - lat, long etc.)

thanks,
Joel 
      


-----Original Message-----
From: Moreland, Kenneth [mailto:kmorel at sandia.gov]
Sent: Tue 4/6/2010 3:41 PM
To: Joel Culina; paraview at paraview.org
Subject: Re: [Paraview] trouble reading in netCDF file
 
It sounds like you are reading in an array with 0 or 1 dimensions (not including time).  Although the reader should happily create an image data of that structure, the standard rendering views only understand image data of 2 or 3 dimensions.  Hence you get the error.

If you want to see the data in a plot, try adding the "Plot Data" filter.

-Ken


On 4/6/10 11:36 AM, "Joel Culina" <joel.culina at acadiau.ca> wrote:



Hi,

I am trying to read in a netCDF file using Paraview 3.6.2.  It can 'see' the netCDF file, but when I attempt to read in the file by pressing 'Apply', I get the following error message:

ERROR: In /home/kitware/ParaView3/Utilities/BuildScripts/ParaView-3.6/ParaView3/Servers/Filters/vtkTexturePainter.cxx, line 280
vtkTexturePainter (0xb8a0000): Incorrect dimensionality.

I'm not sure which netCDF release created the netCDF file.  However, I read in a previous post that paraview 3.6.1 could handle netCDF 4, and since  "all netCDF files ever written can always be read by the latest netCDF release. That is, we guarantee backward data compatibility" then 3.6.2 should be able to handle my netCDF file (which wasn't created too recently).

I can read the netCDF file into MATLAB, so it isn't corrupt.

So what's the problem?

thanks
Joel



   ****      Kenneth Moreland
    ***      Sandia National Laboratories
***********
*** *** ***  email: kmorel at sandia.gov
**  ***  **  phone: (505) 844-8919
    ***      web:   http://www.cs.unm.edu/~kmorel




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100406/9f0efeac/attachment-0001.htm>


More information about the ParaView mailing list