Need help with HDF_VD_WRITE!!! [message #32517] |
Thu, 10 October 2002 03:10 |
Brian Huether
Messages: 12 Registered: September 2002
|
Junior Member |
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Arial size=2>This is quite maddening. I am using IDL 5.2 and am
working with HDF files. Consider an array with 2 columns, where each col is a
field and each row a record. In the language of HDF, that would be a VDATA. In
theory, then the following commands should work:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>fid=HDF_OPEN('test.hdf',/CREATE)</FONT></DIV>
<DIV><FONT face=Arial size=2>Vdat2 = HDF_VD_ATTACH(fid, -1, /WRITE)</FONT></DIV>
<DIV><FONT face=Arial size=2>HDF_VD_WRITE, Vdat2, 'F1,F2',
fltarr(2,10)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>But I get the error</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>HDF_VD_WRITE: Unable to set the VDATA fieldnames to
<STRING ('F1,F2')></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The help on HDF_VD_WRITE is here</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><A
href="http://hires.gsfc.nasa.gov/~beck/pkgs/idl_5.1/idl2c2.htm">http://hires.gsfc.nasa.gov/~beck/pkgs/idl_5.1/idl2c2.htm</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I just simply cannot make it write more than one
field name!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>-brian</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>
|
|
|