Cannot Open some netCDF files

Hello,

I have the following netCDF file: some_data.nc (3.0 MB). I tried to open it with ParaView 5.12 without success.

Any idea why it is not possible to read it?

Thank you

Which netCDF standard is this file using ?

netCDF4 according to ncdump command:

$ ncdump -k some_data.nc
netCDF-4

Opening the file with ParaView I get this:

Point ID,Points_0,Points_1,Points_2,Points_Magnitude,sweep_fixed_angle
0,0,0,0,0,-3

A single point with an angle associated to it.

Technically, ParaView is able to open the file, even though it does not contains much. Is that expected ?

According to ncks command (ncks -m some_data.nc) and opening the file in Panoply it appears to contain more data.

Then it may be a bug, please open an issue on https://gitlab.kitware.com/paraview/paraview/-/issues

It seems like the file contains two groups. Does ParaView supports groups within netCDF files?

No, ParaView does not support groups. (At least, the generic NetCDF reader does not.)

I note that of the two groups, one of them (georeference_correction) is just metadata. All of the real data is in the Sweep_174 group. If that group was written out as its own nc file (without groups), then ParaView would at least see the data.

1 Like

Thank you for the suggestion. I tried your suggestion by exporting the Sweep_174 group to its own file, then flattening that group:

 # export the group to its own file
ncks -O -g Sweep_174 some_data.nc Sweep_174.nc
# Flatten the group and save it in a new .nc file
ncks -G : Sweep_174.nc flattened_file.nc

I still cannot open the flattened_file flattened_file.nc (3.0 MB)
in ParaView.

It looks like ParaView does not support ubyte variables such as radial_wind_speed_status. I’ve raised a bug report for that: https://gitlab.kitware.com/vtk/vtk/-/issues/19546.

This should be an easy fix. I can probably update the reader by the next ParaView version.

In the mean time, I guess you need to remove that variable or change its type.