Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

214.3. nco-5.4.0

Subset, regrid and do arithmetic on gridded data without loading it

5.4.0-1 · BSD-3-Clause · 4.6 SBU · 6.1 MiB, 46 files · 42_graphics, 160 of 189 · ports/core/sci-libs/nco

Homepage: https://nco.sourceforge.net/

Why it is in KDOS. The comment above it in script/phases/42_graphics/packages.d/sci-libs.txt:

Subset, regrid and do arithmetic on a grid larger than memory. Here, not in 41_system, because ncap2 links antlr2's runtime and antlr2 builds with openjdk.

Depends on: antlr2, netcdf-c, hdf5, zlib, gsl, udunits, expat, curl, gcc, texinfo, autoconf, automake, libtool.

Required by: no port names it.

Sources: nco-5.4.0.tar.gz (6.6 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/42_graphics/phase.env && kpkg install nco'

build.sh:

./autogen.sh || autoreconf -fi
./configure --prefix=/usr --libdir=/usr/lib --disable-static \
	--enable-ncap2 --enable-udunits2 --enable-dap --enable-gsl \
	--enable-openmp --enable-doc
make
make DESTDIR=$PKG install
test -x "$PKG/usr/bin/ncap2"

Programs: ncap2, ncatted, ncbo, ncchecker, ncclimo, ncdiff, ncea, ncecat, nces, ncflint, ncks, ncpdq, ncra, ncrcat, ncremap, ncrename, ncwa, ncz2psx.

Libraries: libnco-5.4.0.so, libnco.so.

Directories: /usr/share/licenses/nco.