Exodus data not read correctly?
Here's a funny issue with an Exodus file (test.e). It contains two triangles, four nodes, and on the four nodes two data points a
and b
. The data can be read with, e.g.,
import netCDF4
nc = netCDF4.Dataset("test.e")
names = nc.variables["name_nod_var"]
names.set_auto_mask(False)
point_data_names = [b"".join(c).decode("UTF-8") for c in names[:]]
print(point_data_names)
value1 = nc.variables["vals_nod_var1"]
value1.set_auto_mask(False)
print(value1[:])
value2 = nc.variables["vals_nod_var2"]
value2.set_auto_mask(False)
print(value2[:])
Output:
['a', 'b']
[[0.5488135 0.71518937 0.60276338 0.54488318]]
[[0.4236548 0.64589411 0.43758721 0.891773 ]]
Looks good. Now, when opening the file with ParaView, the node coordinates and the connectivity are read alright, but the data is off:
Is this a ParaView bug?