How to run netcdf.defVarFill for netcdf3 (classic format)?

3 views (last 30 days)
I need to write fillvalue for some variables of my netcdf file. If I use netcdf file type 3 (classic format) how to run netcdf.defVarFill? If I use the command:
netcdf.defVarFill(ncid,varid,false,-99999.0)
I have the following error:
the Error using netcdflib The NetCDF library encountered an error during execution of 'defVarFill' function - 'Attempting netcdf-4 operation on netcdf-3 file (NC_ENOTNC4)'.
Error in netcdf.defVarFill (line 32) netcdflib('defVarFill',ncid,varid,noFillMode,fillvalue);
can someone help me?

Answers (1)

Mohamed Salim
Mohamed Salim on 30 Apr 2018
Hello, here you may find the fix https://cmgsoft.repositoryhosting.com/trac/cmgsoft_m-cmg/wiki/MatlabFillBug%20 Good luck

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!