append renaming to nc history
Added by Chris Danek over 5 years ago
Hi
Is it possible to append just a renaming to the history of a nc file? I could not find this info in the cdo docu.
Thanks a lot,
Chris
Replies (3)
RE: append renaming to nc history - Added by Ralf Mueller over 5 years ago
Hi!appending (or not appending) to the global history attribute is completely up to the user. There is no internal selection of what should be appended or not. Be default everything will be appended, so you have to select what not to append
hth
ralf
RE: append renaming to nc history - Added by Chris Danek over 5 years ago
Hi Ralf
Thanks for you reply. But how can I add the entry
history = "Tue Mar 31 12:32:49 2020: mv fin fout
so that the renaming is documented in the history?
RE: append renaming to nc history - Added by Ralf Mueller over 5 years ago
I think you can do this with the NCO command ncatted:
ncatted -a history,,a,c,'mv A to B' input.ncCDO does create a new file, which is probably not, what you want.
cheers
ralf