Commit a6c09b9f authored by Ricardo Torres's avatar Ricardo Torres 💬

Updated write_FVCOM_restart as a result of potential incompatibility with...

Updated write_FVCOM_restart as a result of potential incompatibility with current matlab version. Related to fillinvalue attribute requiring netcdf.defVarFill instead of fillAtt
parent 93b495f4
......@@ -191,8 +191,11 @@ for ii = 1:numvars
attname = netcdf.inqAttName(nc, varid, j - 1);
attval = netcdf.getAtt(nc, varid, attname);
if startsWith(attname ,{'_FillValue'})
netcdf.defVarFill(ncout, varid,false,attval);
else
netcdf.putAtt(ncout, varid, attname, attval);
end
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment