Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: Help with H...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 5603 of 6457
Post > Topic >>

Re: Help with HDF_VD_WRITE - field names

by Thiago Biscaro <tsbiscaro@[EMAIL PROTECTED] > Apr 8, 2008 at 05:47 AM

On 7 abr, 14:37, jameskuy...@[EMAIL PROTECTED]
 wrote:
> Thiago Biscaro wrote:
> > Hi everybody
>
> > I'm trying to write a Vdata to an HDF file, but for some reason, the
> > only field description IDL accepts is 'PX', like the example in the
> > IDL user's guide.
>
> > The command
>
> >HDF_VD_WRITE, Vdat, 'PX', intarr(5)
>
> > works fine, but
>
> >HDF_VD_WRITE, Vdat, 'RR', intarr(5)
>
> > returns
>
> >HDF_VD_WRITE: Unable to set the VDATA fieldnames to <STRING   ('RR')>.
>
> > I need to set the field name to something that I can understand later,
> > so PX is not an option... Any ideas on how to sole this? I know I can
> > write as an SDS, but I need to do as Vdata for compatibility with some
> > files we process here.
>
> The following code works fine for me. Could you provide a more precise
> explanation of what you're trying to do?
>
> filename = 'test.hdf'
> fieldname = 'RR'
>
> file = HDF_Open(filename,/CREATE)
> Vdat = HDF_VD_Attach(file, -1)
> HDF_VD_FDefine, Vdat, fieldname
> ; /INT, ORDER=5HDF_VD_WRITE, Vdat, fieldname, intarr(5)
> HDF_VD_Detach, Vdat
> HDF_Close, file

Yes, this works just fine. I didn't know that I had to pre-define the
field name with the HDF_VD_DEFINE. Thank you very much!
 




 3 Posts in Topic:
Help with HDF_VD_WRITE - field names
Thiago Biscaro <tsbisc  2008-04-04 07:29:07 
Re: Help with HDF_VD_WRITE - field names
jameskuyper@[EMAIL PROTEC  2008-04-07 10:37:38 
Re: Help with HDF_VD_WRITE - field names
Thiago Biscaro <tsbisc  2008-04-08 05:47:08 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 21:48:46 CST 2008.