Author Topic: Edit nc files  (Read 2478 times)

0 Members and 1 Guest are viewing this topic.

Offline ams_nanolab

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 389
  • Country: in
  • Reputation: 11
    • View Profile
Edit nc files
« 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?


Offline ams_nanolab

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 389
  • Country: in
  • Reputation: 11
    • View Profile
Re: Edit nc files
« Reply #1 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.  ;) :)

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5411
  • Country: dk
  • Reputation: 89
    • View Profile
    • QuantumATK at Synopsys
Re: Edit nc files
« Reply #2 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.

Offline ams_nanolab

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 389
  • Country: in
  • Reputation: 11
    • View Profile
Re: Edit nc files
« Reply #3 on: February 13, 2017, 15:52 »
Will ATK 2017 have backward compatability? I mean also read .nc files? Please do keep it.

Offline Ulrik G. Vej-Hansen

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 425
  • Country: dk
  • Reputation: 8
    • View Profile
Re: Edit nc files
« Reply #4 on: February 13, 2017, 16:25 »
Absolutely, we strive to maintain backwards compatibility.

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5411
  • Country: dk
  • Reputation: 89
    • View Profile
    • QuantumATK at Synopsys
Re: Edit nc files
« Reply #5 on: February 13, 2017, 16:37 »
Always. But only for reading - not writing.

Offline ams_nanolab

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 389
  • Country: in
  • Reputation: 11
    • View Profile
Re: Edit nc files
« Reply #6 on: February 13, 2017, 21:03 »
Okay. Good to know.