octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #39084] octcdf: accessing variable data with r


From: anonymous
Subject: [Octave-bug-tracker] [bug #39084] octcdf: accessing variable data with range expression fails.
Date: Mon, 27 May 2013 17:34:49 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:16.0) Gecko/20100101 Firefox/16.0

URL:
  <http://savannah.gnu.org/bugs/?39084>

                 Summary: octcdf: accessing variable data with range
expression fails.
                 Project: GNU Octave
            Submitted by: None
            Submitted on: dl 27 mai 2013 17:34:48 UTC
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: Joan Pau
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.4
        Operating System: GNU/Linux

    _______________________________________________________

Details:

When accessing a variable with a preset range (not with the magic colon),
octcdf fails. Here there are self descripting examples:


% Writing:
nc = netcdf('myncfile.nc','c');
nc('dim1') = 5;
nc{'var1'} = ncvar('dim1');
nc{'var1'}(:) = 1:5;   % this works!
nc{'var1'}(1:5) = 1:5; % this fails!
close(nc);
% Reading:
nc = netcdf('myncfile.nc')
var1_data = nc{'var1'}(:)   % this works!
var1_data = nc{'var1'}(1:5) % this fails!
% should we close nc here, too?


Using octave 3.6.4 and octave-octcdf 1.1.4-2 from official repos in Ubuntu
13.04 (x86-64).




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?39084>

_______________________________________________
  Missatge enviat a través de/per Savannah
  http://savannah.gnu.org/




reply via email to

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