I am currently using ubuntu 22.04. I have installed anaconda3 on it, run everythong on the base environment and installed netcdf4 using the command
pip install netcdf4
I have coded a script visu_choc.py, which uses the Dataset function of netcdf4, yet, when I run my script, I get the following error during the execution of this Dataset function :
File "/home/vboxgrad/test/./visu_choc.py", line 88, in <module> ds=nc.Dataset(input_file) File "src/netCDF4/_netCDF4.pyx", line 2449, in netCDF4._netCDF4.Dataset.__init__ File "src/netCDF4/_netCDF4.pyx", line 2012, in netCDF4._netCDF4._ensure_nc_success OSError: [Errno -51]
NetCDF: Unknown file format: '0x0choc_stat.nc'
0x0choc_stat.nc is the file I am trying to open.
I have searched for a solution on internet unsuccessfully.
Could anyone help me to know what to do to make netcdf4 work on python?
I am expecting not to have any error and that the function Dataset opens the file.