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

Home » Public Forums » archive » Re: delete a dataset in a 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
Re: delete a dataset in a hdf file [message #34125 is a reply to message #34119] Wed, 26 February 2003 11:21 Go to previous messageGo to previous message
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
Klemens Barfus wrote:
>
> Hello together,
> how can I delete a dataset in a hdf file ? I have not found anything
> about it except a command like HDF_DELDD. Is it the right way and how do
> I have to use it ?

That only removes tags and descriptors. HDF isn't really designed for
deleting things; its design reflects a "write once, read many" attitude.
The there are a few things that you can delete. You can use HDF_DELDD,
and since HDF is built upon CDF, you can use NCDF_ATTDEL to delete
attributes. However, they aren't really removed from the file;
internally, they're marked as "no longer active", but they still use up
space.

You can emulate deletions of a dataset, by copying every part of a file,
except the part you want deleted, to a new file. Then erase the old one,
and change the name of the new file to match the old one. Sorry, that's
about the best you can do.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: IDL_MakeStruct: memory leak? (C / DLM question)
Next Topic: Re: Is PDF the only help option in 5.6?

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

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

Total time taken to generate the page: 0.00165 seconds