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

 
 

bug #47014: netcdf: not writing NaNs

Submitted by:  Muhali <muhali>
Submitted on:  Fri 29 Jan 2016 05:07:53 PM UTC  
 
Category: Octave Forge PackageSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project Member
Fri 29 Jan 2016 05:07:53 PM UTC, original submission:

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

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 File(s):
   
   
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
  • -unavailable- added by mtmiller (Updated the item)
  • -unavailable- added by abarth (Posted a comment)
  • -unavailable- added by carandraug (Alexander Barth, maintainer of netcdf package)
  • -unavailable- added by muhali (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 08 Nov 2016 06:59:32 PM UTCmtmillerStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Sun 07 Feb 2016 11:57:01 PM UTCcarandraugCarbon-Copy-=>Added -unavailable-
    Fri 29 Jan 2016 05:07:53 PM UTCmuhaliAttached File-=>Added foo.nc, #36199

    Back to the top


    Powered by Savane 3.1-cleanup1