Comments (4)
This is by design. A feature not a bug, I hope. ncatted
follows the NCO manual for generating its own history. And when you specifically tell it to append to 'history' not 'History' it does what you tell it to do. So try changing your command above to
ncatted -h -a "History","global",a,c,"ncrcat file_1.nc file_2.nc -o outfile.nc\n" outfile.nc
from nco.
Thank you for the clarification. Appending to 'History' does indeed add the text to the correct entry and I understand better why ncatted handles it this way when appending an attribute. One thing that would be useful when using ncatted to modify the history global attribute is the ability to insert at the beginning much like what the other operators do but that is really a feature request and not a problem.
Thank you for the help and thank you for continuing to develop this most excellent product!
from nco.
A prepend mode seems like a good idea. I'll add it to the wishlist for 5.0.6.
from nco.
FYI prepend mode was easy to add, and you can now try it in ncatted
in newly released NCO 5.0.5. From the release notes:
C. ncatted has a new edit mode: Prepend. Analogous to append mode,
prepend mode will prepend the user-specified value to the attribute
and if the attribute does not exist it will be created:ncatted -a char_att,att_var,p,c,"this is prepended.\n" in.nc out.nc
Feedback welcome!
from nco.
Related Issues (20)
- Fail to build C++ interface libraries with NCO-5.0.1 HOT 1
- NCKS Hyperslabs do not reduce sufficiently file size HOT 3
- upgrade new version with apt HOT 1
- 60x compression! HOT 16
- ncap2 make_bounds exceeded memory limit HOT 1
- x10 error margin for the same spell after HOT 6
- Unable to enable UDUNITS, not UDUNITS2 HOT 8
- No man page for ncz2psx HOT 2
- Error trying to concatenate a number of nc files HOT 5
- ncrcat adds erroneous(?) variable attribute HOT 1
- Parallelize compression over chunks? HOT 2
- ncremap pure pressure vertical interpolation does only the first timestep, everything else is zeros HOT 3
- C++17 deletes `std::binary_function`, breaks ncap2, Antlr2 w/ Clang16 HOT 9
- ncap2 ignores "--cmp" when new dimensions are defined HOT 7
- nco fails to build when compiling with "--no-undefined -Wl" as ld flags HOT 1
- Error building NCO 5.1.6 with icc (Intel classic) in nco_rgr.c HOT 1
- Undefined reference when disbaling OpenMP and using the Intel compiler HOT 1
- Support NC_STRING HOT 6
- using ```ncrename``` generates a corruped file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nco.