[NeXus-code-tickets] [NeXusCode] #6: Java API - makedata cannot create an unlimted dimension array for HDF5 files

NeXus Data Format Library and Applications noreply at nexusformat.org
Tue Jan 9 15:00:53 GMT 2007


#6: Java API - makedata cannot create an unlimted dimension array for HDF5
files
------------------------------+---------------------------------------------
  Reporter:  Freddie Akeroyd  |       Owner:  Mark Koennecke
      Type:  defect           |      Status:  closed        
  Priority:  major            |   Milestone:                
Resolution:  fixed            |    Keywords:                
------------------------------+---------------------------------------------
Changes (by Mark Koennecke):

  * status:  new => closed
  * resolution:  => fixed

Comment:

 Replying to [ticket:6 Freddie Akeroyd]:
 > Reported by Stuart Campbell <s.i.campbell at diamond.ac.uk>
 >
 > Using the following in the Java API to create some data...
 >
 > int iDim[] = new int[1];
 > iDim[0] = 0;
 > nf.makedata("data", NexusFile.NX_FLOAT64, 1, iDim);
 >
 > produces the error:
 >
 > ERROR: Creating chunked dataset failed!
 >
 > when working with a HDF5 file, but works fine for a HDF4 file.

 Freddy, Stuart,

 This is a documentation issue: Unlimited dimensions are denoted by
 NX_UNLIMITEd which is -1 and
 not 0. The code give above works with -1. I updated the documentation.

-- 
Ticket URL: <http://trac.nexusformat.org/code/ticket/6#comment:1>
NeXus Data Format Library and Applications <http://www.nexusformat.org/>
NeXus Data Format Library and Applications



More information about the NeXus-code-tickets mailing list