swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Storing data in hdf format


From: Sven N. Thommesen
Subject: Storing data in hdf format
Date: Mon, 25 Jun 2001 11:49:52 -0500


I am trying to save application data in a hdf5 format file, but I am meeting with some problems. Perhaps someone out there has done this before and can offer some hints?

I have defined an inner class 'DataRecord' which contains a bunch of integers and arrays of integers. During the program run I collect statistics and fill in this record. Then I try to write the record to a hdf file, and this is where the problems crop up.

I have tried 3 different approaches:

1.
Globals.env.hdf5AppArchiver.putShallow$object (dataKey, dataRecord); // dataKey is a suitable String

2.
   HDF5Archiver dataArchiver = new HDF5ArchiverImpl (getZone(), archiverPath);
   ...
   dataArchiver.putShallow$object (dataKey, dataRecord);

In both cases, the following runtime error ensues:

"An unexpected exception has been detected in native code outside the VM. Program counter = 0x48b0770c. Problematic thread: prio=1 tid=0x80fd708 nid=0x4f0 runnable"

3. Trying to get closer to hdf:

   new File (dataFileName).delete();
   HDF5CImpl hdf5C = new HDF5CImpl (new HDF5Impl());
   hdf5C.createBegin(getZone());
   hdf5C.setWriteFlag(true);
   hdf5C.setName(dataFileName);
   dataFile = (HDF5) hdf5C.createEnd();
   ...
   dataFile.shallowStoreObject (dataRecord);

In this case, the error is:

"Event raised for error: SaveError
function: _i_HDF5_c_shallowStoreObject_(), file: HDF5Object.m, line 2006
shallow datasets are expected to have compound type"

Any help would be appreciated.

Sven


                 ==================================
  Swarm-Support is for discussion of the technical details of the day
  to day usage of Swarm.  For list administration needs (esp.
  [un]subscribing), please send a message to <address@hidden>
  with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]