Howto do not append to history global attribute?
Added by Anonymous over 14 years ago
Hi Uwe, Ralf and all,
In case of I don't need to append command to history global attribute. How to do that?
I have searched and read in cdo user guide but I could find how to do that.
Thank you so much,
Chakrit
Replies (5)
RE: Howto do not append to history global attribute? - Added by Ralf Mueller over 14 years ago
Hi!
you can use setgatt to overwrite the history attribute:
cdo setgatt,history,test in.nc out.ncproduces
// global attributes: :history = "test" ;
But there is no commandline option or environment variable to prevent CDO from adding its operatons to the history. You have to prefix your CDO calls with setgatt
.
Regards
Ralf
RE: Howto do not append to history global attribute? - Added by Christopher Danek almost 5 years ago
I would like to have such an not-append
option, especially for very long -select,name=varname f1 f2 ... f99999
history entries, which are annoying most of the time. Or maybe an option to shorten such history entries? Rewriting the history as suggested seems to be more complicated to me.
Thanks for consideration,
Chris
RE: Howto do not append to history global attribute? - Added by Uwe Schulzweida almost 5 years ago
The CDO option --no_history disables appending the history attribute:
cdo --no_history -select,... infile outfile
RE: Howto do not append to history global attribute? - Added by Christopher Danek almost 5 years ago
Thank you very much! I could not find this option in the most recent cdo docu.
RE: Howto do not append to history global attribute? - Added by Jay Su over 4 years ago
Can we remove part of the history in a quick way?
history = "history1; history2";
=>
history = "history2";
Thanks,