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

Home » Public Forums » archive » Re: hdf_sd_getdata
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: hdf_sd_getdata [message #30734 is a reply to message #30723] Wed, 15 May 2002 14:48 Go to previous messageGo to previous message
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
rc wrote:

> Hi all,
>
> I have a 3 dimensional HDF SD (512 pixels * 1000 lines * 14 bands) and
> i would like to extract only 3 bands( 4, 8,11). Can anyone tell me how
> i can do that using hdf_sd_getData. .......thanks in advance.......rc

band4 = HDF_SD_GetData(sd_id, start=[0,0,4], count = [512, 1000, 1])
band8 = HDF_SD_GetData(sd_id, start=[0,0,8], count = [512, 1000, 1])
band11 = HDF_SD_GetData(sd_id, start=[0,0,11], count = [512, 1000, 1])

three_band = [ [[band4]],[[band8]],[[band11]] ]
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: reversing [near, far] for volume rendering
Next Topic: MEDIAN and double?

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

Current Time: Fri Oct 10 19:38:39 PDT 2025

Total time taken to generate the page: 6.88193 seconds