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

Home » Public Forums » archive » Possible to display .h5 ad .hdf together
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Possible to display .h5 ad .hdf together [message #62680] Thu, 25 September 2008 21:15
Shawn[1] is currently offline  Shawn[1]
Messages: 5
Registered: August 2008
Junior Member
HI all, need some help on some issues. I have a draw widget to display
some contents for me. I have a map to display which is a .hdf file.
And i have an array of 200*200* 30 which is from a .h5 file. May i
know if they are possible to display together on the draw widget cause
when i load them together, nothing seems to appear on the screen. Pls
advise. My routine is listed below.



info.view_3d = obj_new('IDLgrView', color = [255, 255, 255])

map_path = 'map.hdf'

file_ID = hdf_sd_start (map_path, /read)

map_ID = hdf_sd_select(file_ID, 0)
HDF_SD_GETDATA, map_ID, map

red_ID = hdf_sd_select(file_ID, 1)
HDF_SD_GETDATA, red_ID, red

green_ID = hdf_sd_select(file_ID, 2)
HDF_SD_GETDATA, green_ID, green

blue_ID = hdf_sd_select(file_ID, 3)
HDF_SD_GETDATA, blue_ID, blue

hdf_sd_end, file_ID

map = transpose (map)

image = obj_new('IDLgrImage', map)

pal = obj_new('IDLgrPalette', red, green, blue)

poly = obj_new('IDLgrPolygon', [[0, 0, 0], [0, 1, 0], [1, 1, 0], [1,
0, 0]])

;============================= end of map creating
================================

vol = obj_new('IDLgrVolume', byte(vol_data/con_ratio)) ---- the data
from .h5 file

model_3d = obj_new('IDLgrModel')
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDLgrText: x/yrange of other than first string?
Next Topic: Re: giving input to fortran program using spawn in IDL

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

Current Time: Fri Oct 10 14:22:59 PDT 2025

Total time taken to generate the page: 0.88019 seconds