[Paraview-developers] vtkNetCDF upgraded to 4.1.1

Paul Melis paul.melis at sara.nl
Tue Jan 18 08:16:44 EST 2011


Hello Dave,

On 08/17/2010 09:11 PM, Dave Partyka wrote:
> I just upaded VTK's netcdf from 3.6.2 to 4.1.1. In addition to the 
> traditional C library I have also brought in the C++ version of the 
> library (vtkNetCDF_cpp). I spent time creating the proper DLL exports, 
> allowing even Windows developers to use the library! This provides a 
> nicer API that developers can use when writing new netcdf 
> readers/writers. Also with netcdf 4.x we can now potentially use HDF5 
> based NetCDF files. See here for the release notes for NetCDF 4. As 
> always we value feedback from the community, feel free to report any 
> issues. In the mean time I will be monitoring the dashboards.

Does this upgrade mean that Paraview should now be able to read all 
files in "netcdf-4 format" (i.e. netcdf-4 data model, hdf5 file format)?

I'm testing with a simple file written by a netcdf-4 example that has 
the following contents:

paulmlocal at sara0140:~/examples$ ~/software/netcdf411/bin/ncdump -k  
simple_xy_nc4.nc
netCDF-4
paulmlocal at sara0140:~/examples$ ~/software/netcdf411/bin/ncdump  
simple_xy_nc4.nc  |head
netcdf simple_xy_nc4 {
dimensions:
         x = 60 ;
         y = 120 ;
variables:
         int data(x, y) ;
data:

  data =
   0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 
20,
[...]
     7164, 7165, 7166, 7167, 7168, 7169, 7170, 7171, 7172, 7173, 7174, 
7175,
     7176, 7177, 7178, 7179, 7180, 7181, 7182, 7183, 7184, 7185, 7186, 
7187,
     7188, 7189, 7190, 7191, 7192, 7193, 7194, 7195, 7196, 7197, 7198, 
7199 ;
}

When I load this file in PV 3.8.1 the only netcdf-related option I get 
in the "Open Data With..." box is "POP Ocean Netcdf (rectilinear)", 
while the file types list in the File -> Open dialog also contains 
"netCDF files generic and CF conventions (*.ncdf *.nc)". Are there 
specific requirements for the data layout used in a netcdf file for 
Paraview to be able to load it?

Regards,
Paul


More information about the Paraview-developers mailing list