In the example above I also added comments about ncautonan an ncautoscale. From the documentation, it is not clear if the return value should be reassigned to a variable to preserve the changes or not. This keeps the changes but produce the warning:
nc{'var1'} = ncvar('dim1');
nc{'var1'} = ncautonan(nc{'var1'}, 1); % This produces a warning: var1 already exists
nc{'var1'} = ncautoscale(nc{'var1'}, 1); % This produces a warning: var1 already exists
While this does not produce the warning but does not keep the changes (autonan and autoscale keep disabled):
nc{'var1'} = ncvar('dim1');
ncautonan(nc{'var1'}, 1); % Autonan does not keep enabled for nc{'var1'}
ncautoscale(nc{'var1'}, 1); % Autoscale does not keep enabled for nc{'var1'}
How should we call these functions?
I did all tests in Ubuntu 13.04 (x86-64) with octave and octave-octcdf from the official repositories.
Thank you!
--
Joan Pau Beltran