Re: HDF_VD_WRITE for string data [message #62871] |
Tue, 14 October 2008 06:13  |
Brian
Messages: 27 Registered: March 2001
|
Junior Member |
|
|
On Oct 14, 8:44 am, David Fanning <n...@dfanning.com> wrote:
> Brian writes:
>> I'm attempting to add string data to VDATA. I've been mixing data
>> types using the HDF_PACKDATA function (float and long in example
>> below), but can't get the string type to work. Instead of "Test" I get
>> a 4 byte value.
>
> I'm guessing that if you applied the String function to
> those four bytes that the string "Test" would miraculously
> appear. This is similar to writing secret notes in lemon
> juice. Hold the blank paper near a flame and your lover's
> note miraculously appears!!
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Obviously.
The point of the sample program above is to save v3 as a string, not
as a byte array, in the HDF file.
BRIAN
|
|
|
|
Re: HDF_VD_WRITE for string data [message #62969 is a reply to message #62871] |
Tue, 14 October 2008 06:29  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Brian writes:
> Obviously.
>
> The point of the sample program above is to save v3 as a string, not
> as a byte array, in the HDF file.
I'm just suggesting this might be as good as it gets.
Maybe it's smarter than that, but I get *more* cynical
with age, not less. :-(
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|