bugGNU Octave - Bugs: bug #55928, (netcdf) no (easy) way to set...

 
 

bug #55928: (netcdf) no (easy) way to set global attribute

Submitter:  Muhali <muhali>
Submitted:  Fri 15 Mar 2019 01:56:12 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 5.1.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 15 Mar 2019 05:16:23 PM UTC, comment #3: 
John Donoghue <lostbard>
Group Member
Fri 15 Mar 2019 04:57:06 PM UTC, comment #2: 

how did you find that? – (please close this quickly and sorry for the noise)

Muhali <muhali>
Fri 15 Mar 2019 04:40:03 PM UTC, comment #1: 

The documentation for ncwriteatt says:

Global attributes can be defined by using "/" or the group name as varname. The type of value is mapped to the NetCDF data types

so (havent tried it)

ncwriteatt(ncfile, "/", "Conventions", "CF-1.6")

John Donoghue <lostbard>
Group Member
Fri 15 Mar 2019 01:56:12 PM UTC, original submission:  

May be I am missing something, but there does not seem to be a high-level way to create a global attribute, at least not a documented one. What seems to work is

ncwriteatt(ncfile, netcdf_getConstant("global"), "Conventions", "CF-1.6")

but that throws character conversion warnings, so I am not really sure what I'm doing.

Muhali <muhali>

 

(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 lostbard (Posted a comment)
  • -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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-03-15 lostbard StatusNone Invalid / Not an Octave Bug
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code