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

Home » Public Forums » archive » Re: Copy from an hdf file to another
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
Re: Copy from an hdf file to another [message #80521] Thu, 21 June 2012 05:41
laurisilla is currently offline  laurisilla
Messages: 9
Registered: June 2012
Junior Member
El jueves, 21 de junio de 2012 13:28:33 UTC+1, Fab escribió:
> On 06/21/2012 01:44 PM, Laura wrote:
>> So how can I copy the information I need from an hdf file to another?
>>
>
> My advice would be to read the information from the HDF files and put it
> in a NCDF file, because NCDF files are nicer. If I had to do it, I would
> always use Davis's NCDF_FILE object because its great:
>
> http://www.idlcoyote.com/programs/ncdf_file__define.pro

I really prefer to do it with hdf, I´m used to work with them, I´ve already read the originals files, and made a nex matrix with my region of interest, what I want to know is hot to copy it in another hdf file.

fileID = hdf__sd_start(filename,/create)

I create my new sds data sets like this

laitudessdsID=hdf_sd_create(fileID, "Latitude",/Float)
longitudessdsID=hdf_sd_create(fileID, "Longitude",/Float)
TempsdsID=hdf_sd_create(fileID, "Temperature",/Float)

but then I don´t know how to "transfer" my area of interest from the other hdf file which I´ve already read to a new one
Re: Copy from an hdf file to another [message #80522 is a reply to message #80521] Thu, 21 June 2012 05:28 Go to previous message
Fabzi is currently offline  Fabzi
Messages: 305
Registered: July 2010
Senior Member
On 06/21/2012 01:44 PM, Laura wrote:
> So how can I copy the information I need from an hdf file to another?
>

My advice would be to read the information from the HDF files and put it
in a NCDF file, because NCDF files are nicer. If I had to do it, I would
always use Davis's NCDF_FILE object because its great:

http://www.idlcoyote.com/programs/ncdf_file__define.pro
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Create multiple hdf files
Next Topic: IDL DE startup error on OS X

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

Current Time: Wed Oct 08 13:39:47 PDT 2025

Total time taken to generate the page: 0.00549 seconds