Version 5.2.2 of the netCDF Operators (NCO) has been released. NCO is an Open Source package that consists of a dozen standalone, command-line programs that take netCDF files as input, then operate (e.g., derive new data, average, print, hyperslab, manipulate metadata) and output the results to screen or files in text, binary, or netCDF formats.
The NCO project is coordinated by Professor Charlie Zender of the Department of Earth System Science, University of California, Irvine. More information about the project, along with binary and source downloads, are available on the SourceForge project page.
From the release message:
Version 5.2.2 introduces a new operator, ncchecker
, that checks
dataset compliance with a small yet growing number of
recommendations.
New Features
-
The new
ncchecker
command checks netCDF files for compliance with select best practices rules and recommendations from various data and metadata standards bodies. These include the Climate & Forecast (CF) Metadata Conventions and the NASA Dataset Interoperability Working Group (DIWG) recommendations. Only a small subset (six tests) of CF and DIWG recommendations are currently supported. The number of tests implemented, or, equivalently, of recommendations checked, is expected to grow.ncchecker in1.nc in2.nc # Run all tests on two files ncchecker -v var1,var2 in1.nc # Check only two variables ncchecker *.nc # Glob input files via wildcard ls *.nc | ncchecker # Input files via stdin ncchecker --dbg=2 *.nc # Debug ncchecker ncchecker --tests=nan,mss *.nc # Select only two tests ncchecker --tests=xtn,tm,nan,mss,chr,bnd *.nc # Change test ordering ncchecker file:///Users/zender/in_zarr4#mode=nczarr,file # Check Zarr object(s)
The output contains counts of the location and number of failed tests, or prints "SUCCESS" for tests with no failures.
http://nco.sf.net/nco.html#ncchecker
Additional details are available in the ChangeLog.