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

Home » Public Forums » archive » Question regarding HDF file
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Question regarding HDF file [message #55144] Sun, 05 August 2007 12:50 Go to previous message
None[1] is currently offline  None[1]
Messages: 13
Registered: August 2007
Junior Member
Hi. I have a problem rewriting the data to the original hdf file
(i.e., to the same dataset which i had read from, earlier) I am
getting negetive data values. Also I am getting the same negetive data
values if i put a dummy array instead of the data in the
HDF_SD_ADDDATA command. I got correct values when I output the result
to a tiff file, but not able to get the correct values if I write it
back to the original file. I have posted my code bellow. Can anybody
please help me with a solution

sdFileID2 = HDF_SD_Start(fname, /RdWr)
sdsIDsm = HDF_SD_Select(sdFileID2,im[j]); im[j] are different bands
HDF_SD_ADDDATA, sdsIDsm, rowp, start=[0,0], count=[x[j],y[j]]
; rowp is the dataset and is of type float
; x,y are the array dimensions
HDF_SD_EndAccess, sdsIDsm

Thank you

Rajesh
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Thinning algorithm without for loops
Next Topic: Re: Another simple one

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

Current Time: Fri Oct 10 10:32:46 PDT 2025

Total time taken to generate the page: 0.64117 seconds