function self = set( self, varargin )

% modifier set pour modifier plusieurs propriete
% (voir doc Programing Matlab, page 8-41)

if nargin == 3
  prop  = varargin{1};
  value = varargin{2};
  
  switch prop
    
    case 'file'
      self.file = value;
    case 'mode'
      self.mode = value;
    case 'nc_id'
      self.nc_id = value;
    case 'autonan'
      self.autonan = value;
    case 'autoscale'
      self.autoscale = value;
   otherwise
      error('Unrecognized property name ''%s''.', prop); 
  end
  
end