Re: Copy from an hdf file to another [message #80521] |
Thu, 21 June 2012 05:41 |
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
|
|
|
|