bugGNU Octave - Bugs: bug #39084, octcdf: accessing variable data...

 
 

bug #39084: octcdf: accessing variable data with range expression fails.

Submitter:  None
Submitted:  Mon 27 May 2013 05:34:48 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  None
Originator Name:  Joan Pau Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.6.4
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 31 May 2015 08:08:34 PM UTC, comment #3: 

Works for me with octcdf 1.1.8 and Octave 4.0.0. Closing as fixed.

Mike Miller <mtmiller>
Group Member
Tue 28 May 2013 10:06:46 AM UTC, comment #2: 

@Muhali It is a typo, sorry ;). It should be ncdouble('dim1') (create a double variable with one dimension 'dim1')

Anonymous
Tue 28 May 2013 09:36:27 AM UTC, comment #1: 

What is "ncvar('dim1')"?

Muhali <muhali>
Mon 27 May 2013 05:34:48 PM UTC, original submission:  

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).

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-05-31 mtmiller StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code