NCO(1)
π 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 Processorncattedβ netCDF Attribute Editorncboβ netCDF Binary Operator (includesncadd,ncsubtract,ncmultiply,ncdivide)ncesβ netCDF Ensemble Averagerncecatβ netCDF Ensemble Concatenatorncflintβ netCDF File Interpolatorncksβ netCDF Kitchen Sinkncpdqβ netCDF Permute Dimensions Quickly, Pack Data Quietlyncraβ netCDF Record Averagerncrcatβ netCDF Record Concatenatorncrenameβ netCDF Renamerncwaβ 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 π
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:
- PDF: <http://nco.sf.net/nco.pdf>
- DVI: <http://nco.sf.net/nco.dvi>
- Postscript: <http://nco.sf.net/nco.ps>
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 π
β¨ππ«Ά
π¦ where this page comes from
- debian bookworm: nco 5.1.4-1+deb12u1 Β· BSD-3-Clause
- debian trixie: nco 5.3.3-1 Β· BSD-3-Clause
- epel 10: nco 5.3.3-1.el10_1 Β· BSD-3-Clause
- fedora 43: nco 5.3.3-2.fc43 Β· BSD-3-Clause
- fedora 44: nco 5.3.6-1.fc44 Β· BSD-3-Clause
- fedora 44: nco 5.3.7-1.fc44 Β· BSD-3-Clause
- nixos 26.05: nco 5.3.2
- nixpkgs unstable: nco 5.4.0
- opensuse-leap 16.0: nco 5.3.4-bp160.1.2 Β· BSD-3-Clause
- opensuse-leap 16.0: nco 5.3.4-bp160.1.2 Β· BSD-3-Clause
- opensuse-leap 16.0: nco 5.3.4-bp160.1.2 Β· BSD-3-Clause
- ubuntu noble: nco 5.2.1-1build2 Β· BSD-3-Clause
- ubuntu questing: nco 5.3.3-1
- ubuntu resolute: nco 5.3.6-1 Β· BSD-3-Clause
- ubuntu stonking: nco 5.3.9-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms