# NetCDF file gives error "Incorrect Dimensionality"

**URL:** https://discourse.paraview.org/t/netcdf-file-gives-error-incorrect-dimensionality/7254
**Category:** ParaView Support
**Created:** [May 19, 2021, 10:25pm UTC](https://discourse.paraview.org/t/netcdf-file-gives-error-incorrect-dimensionality/7254 "2021-05-19T22:25:14Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![datathing](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/e8c25b/32.png) [@datathing](https://discourse.paraview.org/u/datathing)
#### Post date: [May 19, 2021, 10:25pm UTC](https://discourse.paraview.org/t/netcdf-file-gives-error-incorrect-dimensionality/7254/1 "2021-05-19T22:25:14Z")

</div>

Hi,

I generated some NetCDF files using FloPy ([flopy3\_export.ipynb](https://github.com/modflowpy/flopy/blob/develop/examples/Notebooks/flopy3_export.ipynb)) and tried to import and view these in ParaView, but I get an ‘Incorrect Dimensionality’ error for every single file NetCDF (.nc) file.

 ![image](https://discourse.paraview.org/uploads/default/original/2X/5/5e89bdc820b74d75e6a148211a209b18bc55811a.png)

Any ideas what might be causing this error or any tips on how I might be able to troubleshoot it?

Thanks!

---

<div class="post-metadata">

### Author: ![StRuoff](https://discourse.paraview.org/user_avatar/discourse.paraview.org/struoff/32/2060_2.png) [@StRuoff](https://discourse.paraview.org/u/StRuoff)
#### Post date: [May 11, 2022, 6:03am UTC](https://discourse.paraview.org/t/netcdf-file-gives-error-incorrect-dimensionality/7254/2 "2022-05-11T06:03:54Z")

</div>

Hi @datathing ,

Today I stumbled over your post, since i had the same Error for my netcdf-data (Paraview 5.6.0)

What helped on my side, was to use the filter `ImageDatatoPointSet`, and after that I can visualize my data correctly.

Unfortunately, I cannot exactly locate, where/why the error occurs, since I tried to manipulate the data with certain attributes (axis, cordinates, featureType,…) but the error persits.

I also attached a short example on how I created the data ([sample\_netcdf\_1D.py](https://discourse.paraview.org/uploads/short-url/u5NKW9vaGB7OgFbV40sdWmIdof8.py) (697 Bytes)) and the data itself ([two\_2.nc](https://discourse.paraview.org/uploads/short-url/dLdMQqVnSLyAAulVdphyi5VkZti.nc) (664 Bytes)) for others to see and test, or maybe give a hint on what is wrong/missing in the dataset.

---

<div class="post-metadata">

### Author: ![Venke](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/v/6de8d8/32.png) [@Venke](https://discourse.paraview.org/u/Venke)
#### Post date: [May 11, 2022, 7:52am UTC](https://discourse.paraview.org/t/netcdf-file-gives-error-incorrect-dimensionality/7254/3 "2022-05-11T07:52:17Z")

</div>

So far, I have only worked with netCDF containing planes or volumes. But I have noticed that ParaView requires a specific order of the data. In my case I need to apply permutations for a correct visualization. In your case it may be that the 1D case is not supported…?
