bugGNU Octave - Bugs: bug #47014, netcdf: not writing NaNs

 
 

bug #47014: netcdf: not writing NaNs

Submitter:  Muhali <muhali>
Submitted:  Fri 29 Jan 2016 05:07:53 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 08 Nov 2016 03:14:38 PM UTC, comment #3: 

Can this bug be closed?

Alexander Barth <abarth>
Tue 15 Mar 2016 09:48:43 AM UTC, comment #2: 


Thank you for the bug report and the reproducing netcdf file.
This is fixed in netcdf 1.0.9

I get now the same results as in matlab:

>> pkg load netcdf
>> x = ncread('foo.nc', 'tp');
>> x(10,1,29)

ans = NaN

>> x(10,1,29) = nan ;
>> ncwrite('foo.nc', 'tp', x);
>> x = ncread('foo.nc', 'tp');
>> x(10,1,29)

ans = NaN

>>


This bug can be closed.

Alexander Barth <abarth>
Sun 07 Feb 2016 11:57:01 PM UTC, comment #1: 

Adding maintainer of package to CC

Carnë Draug <carandraug>
Group Member
Fri 29 Jan 2016 05:07:53 PM UTC, original submission:  

With the attached netcdf file foo.nc, running the following code


pkg load netcdf
x = ncread('foo.nc', 'tp');
x(10,1,29)
x(10,1,29) = nan ;
ncwrite('foo.nc', 'tp', x);
x = ncread('foo.nc', 'tp');
x(10,1,29)


in octave produces

ans = NaN
ans =   -1.8128e-05

whereas ML, correctly, produces the following (without the pkg line):

ans = NaN
ans = NaN

This may be related to bug #42353.

Muhali <muhali>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #36199:  foo.nc added by muhali (14KiB - application/x-netcdf)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Updated the item)
  • -email is unavailable- added by abarth (Posted a comment)
  • -email is unavailable- added by carandraug (Alexander Barth, maintainer of netcdf package)
  • -email is unavailable- added by muhali (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-08 mtmiller StatusNone Fixed
        Open/ClosedOpen Closed
    2016-02-07 carandraug Carbon-Copy- Added -email is unavailable-
    2016-01-29 muhali Attached File- Added foo.nc, #36199

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code