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

Home » Public Forums » archive » specifying argument using a variable
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
specifying argument using a variable [message #69538] Fri, 22 January 2010 08:04
Bruce Bowler is currently offline  Bruce Bowler
Messages: 128
Registered: September 1998
Senior Member
(OK, I know that's not the clearest subject line)...

hdf_vd_get, vdataID, interlace=interlace

(where interlace is either 'FULL_INTERLACE' or 'NO_INTERLACE')

result = hdf_vd_read(vdataID, vdata, ...)

where ... can be /FULL_INTERLACE or /NO_INTERLACE

What's the "idl way" to use the output from the hdf_vd_get as the input
to hdf_vd_read?

Clearly one could do (pigeon-idl)

if interlace = FULL_INTERLACE then
result=hdf_vd_read(vdataID,vdata,/FULL_INTERLACE)
else
result=hdf_vd_read(vdataID,vdata,/NO_INTERLACE)
endif

But that just feels wrong... There must be a better way.

Bruce
[Message index]
 
Read Message
Previous Topic: Calculate sensor response functions
Next Topic: Re: specifying argument using a variable

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

Current Time: Fri Oct 10 04:15:03 PDT 2025

Total time taken to generate the page: 1.91687 seconds