xmdf
files helped me to read NetCDF files with older versions of Paraview as well.
I use them to deal with another issue actually which I am not sure if it is important for you or not, NetCDF files are saved based on array index. If you wish to visualize them on Paraview with the correct physical coordinates, I think the only way is to create a xmdf
file. not sure if it is the only way, please comment if there are other ways, also please have a look my question about that:
An example xmdf file looks like that:
<?xml version="1.0" ?>
<!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []>
<Xdmf xmlns:xi="http://www.w3.org/2001/XInclude" Version="2.0">
<Domain>
<Grid Name="gridxyz">
<Topology TopologyType="3DSMesh" NumberOfElements="064 0129 0513">
</Topology>
<!-- Read Coordinates -->
<Geometry GeometryType="X_Y_Z">
<DataItem Name="X" Format="HDF" NumberType="Float" Precision="8" Dimensions="0064 0129 0513">
grid.nc:/gridx
</DataItem>
<DataItem Name="Y" Format="HDF" NumberType="Float" Precision="8" Dimensions="0064 0129 0513">
grid.nc:/gridy
</DataItem>
<DataItem Name="Z" Format="HDF" NumberType="Float" Precision="8" Dimensions="0064 0129 0513">
grid.nc:/gridz
</DataItem>
</Geometry>
<!-- Read Scalar -->
<Attribute Name="ux1" AttributeType="Scalar" Center="node">
<DataItem Format="HDF" NumberType="Float" Precision="8" Dimensions="0064 0129 0513">
fields021.nc:/ux1
</DataItem>
</Attribute>
<Attribute Name="uy1" AttributeType="Scalar" Center="node">
<DataItem Format="HDF" NumberType="Float" Precision="8" Dimensions="0064 0129 0513">
fields021.nc/uy1
</DataItem>
</Attribute>
<Attribute Name="uz1" AttributeType="Scalar" Center="node">
<DataItem Format="HDF" NumberType="Float" Precision="8" Dimensions="0064 0129 0513">
fields021.nc:/uz1
</DataItem>
</Attribute>
</Grid>
</Domain>
</Xdmf>