How to create a NetCDF file in python?

Hello!

I created the netCDF file myself and tried it, but the error message appears.

Here is my python code:

If you are familiar with python, could you take a look at my python code and see what’s wrong?

Thank you!

Hi, I don’t see any obvious problem with the Python code. However, you appear to be attempting to importing (opening) the data as type “wrf” (Import / WRF-ARW). Try importing as NetCDF-CF (Import / NetCDF-CF).

If that doesn’t due the trick for you maybe you could post the output of ‘ncdump -h’ applied to your NetCDF file.

1 Like