octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: octcdf questions


From: Alexander Barth
Subject: Re: octcdf questions
Date: Tue, 28 May 2013 22:20:29 +0200

Hi Joan

For autonan and autoscale you should do something like this:


nc = netcdf('myncfile.nc','c');
nc('dim1') = 5;
nc{'var1'} = ncdouble('dim1');
nv = nc{'var1'};
nv = autonan(nv,1);
nv = autoscale(nv,1);

What is strange is that both assignments work for me using octcdf 1.1.6 and octave 3.6.2

nv(:) = 1:5; % to use the autonan and autoscale
nv(1:5) = 1:5;

or in this form:

nc{'var1'}(1:5) = 1:5; % without autonan and autoscale

What does happen when you try "nv(1:5) = 1:5;" ?
Can you run nctest?

Cheers,
Alex




On Tue, May 28, 2013 at 12:10 PM, Joan Pau Beltran <address@hidden> wrote:
Hi again,

Just to note a typo in the first example:

 nc{'var1'} = ncvar('dim1')

should be
  nc{'var1'} = ncdouble('dim1')

Sorry!


--
Joan Pau Beltran


reply via email to

[Prev in Thread] Current Thread [Next in Thread]