QuantumATK Forum

QuantumATK => General Questions and Answers => Topic started by: ams_nanolab on February 13, 2017, 13:34

Title: Edit nc files
Post by: ams_nanolab on February 13, 2017, 13:34
I have a .nc file with a lot of objects in it. Many of which I do not need anymore. To stop bloating the file size and to keep only relevant gIDs what should be done?

Is there any way to selectively remove/delete certain objects from a .nc file?

Title: Re: Edit nc files
Post by: ams_nanolab on February 13, 2017, 15:14
No need. I did it . Just read and write the configuration files with the needed gIDs.  ;D It was trivial now that I think of it.  ;) :)
Title: Re: Edit nc files
Post by: Anders Blom on February 13, 2017, 15:41
Yes, there is no option to remove an object from an NC file, this function does not exist in the file standard. So your way is the correct and only possibility. In ATK 2017 we are switching to HDF5 storage format, that will offer a lot of improved functionality.
Title: Re: Edit nc files
Post by: ams_nanolab on February 13, 2017, 15:52
Will ATK 2017 have backward compatability? I mean also read .nc files? Please do keep it.
Title: Re: Edit nc files
Post by: Ulrik G. Vej-Hansen on February 13, 2017, 16:25
Absolutely, we strive to maintain backwards compatibility.
Title: Re: Edit nc files
Post by: Anders Blom on February 13, 2017, 16:37
Always. But only for reading - not writing.
Title: Re: Edit nc files
Post by: ams_nanolab on February 13, 2017, 21:03
Okay. Good to know.