Project

General

Profile

append renaming to nc history

Added by Christopher Danek almost 4 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 almost 4 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 Christopher Danek almost 4 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 almost 4 years ago

I think you can do this with the NCO command ncatted:

ncatted -a history,,a,c,'mv A to B' input.nc
CDO does create a new file, which is probably not, what you want.
cheers
ralf

    (1-3/3)