NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Armin, >Date: Tue, 06 Jul 1999 19:56:08 +0200 >From: "Armin S. A. Roehrl" <Armin.Roehrl@xxxxxxx> >To: visad-list@xxxxxxxxxxxxx >Subject: netCDF & SpreadSheet question; visualising a network structure In the above message, you wrote: > my apologies if I miss the obvious, but how do I use the netCDF file > format to save a datastructure like that: I have a set of n nodes > and for each node I have a list of ingoing edges and outgoing edges. > The best way to think of it, is like the internet. I have a set of > routers and for every router a list of other routers connected to > it. How do I save sth. like that easily in netCDF? If the method visad.data.netcdf.Plain.save(String, Data) can't save the VisAD data object and you MUST save it as a netCDF dataset, then you'll have to write something that saves it as a netCDF dataset yourself. Plain.save() isn't capable of saving all VisAD data objects as netCDF datasets -- there are categories of data objects that trancend the standard netCDF conventions implemented by Plain, and it sounds like yours is one of them. Note that VisAD comes with two packages that implement access to a netCDF dataset: "ucar.multiarray" and "ucar.netcdf". Though potentially non-trivial, one could use these packages to save all data objects that can possibly be represented in a netCDF dataset. -------- Steve Emmerson <http://www.unidata.ucar.edu>
visad
archives: