NCO(1)

πŸ“¦
version 5.3.9 Β· 2 versions
  • 5.3.9 Β· debian bookworm, debian trixie, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 5.0.7 Β· epel 9, ubuntu jammy
, in debian bookworm, debian trixie, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ‘‘ NCO(1) β€” the netCDF Operators, bestie edition πŸ‘‘

okay so welcome to the General Commands Manual, section 1, and we're talking about NCO β€” the netCDF Operators. pull up a chair, grab a boba, we're doing science today πŸ§‹βœ¨


✨ NAME ✨

NCO β€” the netCDF Operators. that's the whole name, that's the whole vibe, and they ate πŸ’…


πŸ¦‹ SYNTAX πŸ¦‹

operator [ options] input-files output-file

literally that's it. operator, then options, then the input files, then the output file. the way that it just works 🫢


🌸 DESCRIPTION 🌸

okay so the netCDF Operators β€” NCO for short β€” are a whole suite of programs known as operators. each operator is a standalone, command line program that you run right at the UNIX shell level, just like you'd run ls or mkdir. no cap, same energy.

here's the deal: the operators take netCDF files as input (that's <http://www.unidata.ucar.edu/packages/netcdf> if you wanna go look πŸ‘€), then they perform a set of operations on them β€” think deriving new data, averaging, hyperslabbing, or metadata manipulation β€” and then they hand you back a netCDF file as output. iconic behaviour, honestly.

the operators are primarily designed to help you manipulate and analyze gridded scientific data. the single command style of NCO means you can manipulate and analyze your files interactively and with simple scripts, which means you dodge the overhead (and yeah, some of the power) of a higher level programming environment. it's giving low-effort-high-reward πŸ’–

the NCO Users Guide illustrates their use with examples from the field of climate modeling and analysis. very main character of the climate scientists ngl.

πŸŽ€ the available operators πŸŽ€

  • ncap2 β€” netCDF Arithmetic Processor
  • ncatted β€” netCDF Attribute Editor
  • ncbo β€” netCDF Binary Operator (includes ncadd, ncsubtract, ncmultiply, ncdivide)
  • nces β€” netCDF Ensemble Averager
  • ncecat β€” netCDF Ensemble Concatenator
  • ncflint β€” netCDF File Interpolator
  • ncks β€” netCDF Kitchen Sink
  • ncpdq β€” netCDF Permute Dimensions Quickly, Pack Data Quietly
  • ncra β€” netCDF Record Averager
  • ncrcat β€” netCDF Record Concatenator
  • ncrename β€” netCDF Renamer
  • ncwa β€” netCDF Weighted Averager.
heads up bestie: the "averagers" are misnamed 😭 because they perform a whole bunch of non-linear operations too β€” total, minimum, maximum, RMS. so don't come for them, they contain multitudes.

the operators are as general as netCDF itself: there are no restrictions on what's inside the netCDF file(s) you use as input. NCO's internal routines are completely dynamic and impose no limit on the number or sizes of dimensions, variables, and files. so go big, bestie, it can handle it πŸ’ͺ

NCO is designed to be used both interactively and with large batch jobs. the default operator behavior is often enough for everyday needs, and there are numerous command line (i.e., run-time) options for the special cases. and β€” this is the part that slays β€” NCO works well on all modern operating systems. all of them. every single one. periodt. ✨


πŸ’œ AUTHOR πŸ’œ

the NCO manual pages were written by Charlie Zender and originally formatted by Brian Mays. absolute legends, we stan 🫢


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? not me finding a bug 😭 report it to <http://sf.net/bugs/?group_id=3331> and they'll sort you out.


Copyright Β© 1995-present Charlie Zender

this is free software; see the source for copying conditions. and listen β€” there is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. like, zero. none. nada. so don't @ them if something breaks πŸ’€


🌈 SEE ALSO 🌈

the full documentation for NCO is maintained as a Texinfo manual called the NCO Users Guide. and because NCO is mathematical in nature, the documentation includes TeX-intensive portions that are not viewable on character-based displays. so the only complete and authoritative versions of the NCO Users Guide are the PDF (which is the recommended one, fr fr), DVI, and Postscript versions, right here:

HTML and XML versions are also available at <http://nco.sf.net/nco.html> and <http://nco.sf.net/nco.xml>, respectively. so many formats, they're so generous πŸŽ€

if the info and NCO programs are properly installed at your site, this command:

info nco

should give you access to the complete manual β€” except for those TeX-intensive portions we just talked about. iykyk.

and here's the whole friend group, the full squad:

ncap2(1), ncatted(1), ncbo(1), ncclimo(1), nces(1), ncecat(1), ncflint(1), ncz2psx(1), ncks(1), nco(1), ncpdq(1), ncra(1), ncrcat(1), ncremap(1), ncrename(1), ncwa(1)


πŸ¦‹ HOMEPAGE πŸ¦‹

the NCO homepage at <http://nco.sf.net> has even more info if you're still hungry for it. go feast πŸ’–


and that's the whole page, bestie!! 🌟 this was NCO(1) from the General Commands Manual, section 1, and honestly? she ate. go forth and hyperslab responsibly, mwah πŸ’…βœ¨πŸŽ€πŸ«Ά