Python : Replacing Values in netcdf file using netCDF4
Python : Replacing Values in netcdf file using netCDF4 Question: I have a netcdf file with several values < 0. I would like to replace all of them with a single value (say -1). How do I do that using netCDF4? I am reading in the file like this: import netCDF4 dset = netCDF4.Dataset(‘test.nc’) dset[dset.variables[‘var’] …
Total answers: 4