comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Need help with HDF_VD_WRITE!!!
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Need help with HDF_VD_WRITE!!! [message #32517] Thu, 10 October 2002 03:10
Brian Huether is currently offline  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>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>But I get the error</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>HDF_VD_WRITE: Unable to set the VDATA fieldnames to
&lt;STRING ('F1,F2')&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>The help on HDF_VD_WRITE is here</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>-brian</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BODY></HTML>
[Message index]
 
Read Message
Previous Topic: Re: copying of objects
Next Topic: returning pointers and simple types from DLM functions

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:22:52 PDT 2025

Total time taken to generate the page: 0.00427 seconds