sorry if wrong place or irrelevent ...
I used since years a script calling "ncks" to extract data with version 4.4.2, and I based my script on the doc ... But with the 4.7.4 delivered by Brew on OSX, my script is not working
anymore, and the example also ...
Ha, yes, I downloaded, compiled and tested the 4.7.4 on Linux too,
with same problem :(
I tried to simplify the bug report and fit with the example on the Web page
http://nco.sourceforge.net/nco.html#ncks-netCDF-Kitchen-Sink
expecially : ncks -C -v three_dmn_var in.nc
for that, I downloaded the test file "in.nc" here :
http://dust.ess.uci.edu/tmp/
for me, OLD is in agreement with the documentation, not NEW !
(and, for me, a code like "ncks" should not change the output on such "basic" case)
OLD $ ncks -C -v three_dmn_var in.nc | head -5
three_dmn_var: type NC_FLOAT, 3 dimensions, 2 attributes, chunked? no, compressed? no, packed? no
three_dmn_var size (RAM) = 234sizeof(NC_FLOAT) = 244 = 96 bytes
three_dmn_var dimension 0: lat, size = 2 NC_FLOAT (Coordinate is lat)
three_dmn_var dimension 1: lev, size = 3 NC_FLOAT (Coordinate is lev)
three_dmn_var dimension 2: lon, size = 4 NC_FLOAT (Coordinate is lon)
NEW: ncks -C -v three_dmn_var in.nc
netcdf in {
dimensions:
lat = 2 ;
lev = 3 ;
lon = 4 ;
variables:
float three_dmn_var(lat,lev,lon) ;
three_dmn_var:long_name = "three dimensional variable with CCM coordinate convention C=[lat,lev,lon], Fortran=(lon,lev,lat)" ;
three_dmn_var:units = "fraction" ;
data:
three_dmn_var =
0, 1, 2, 3,
4, 5, 6, 7,
8, 9, 10, 11,
12, 13, 14, 15,
16, 17, 18, 19,
20, 21, 22, 23 ;
} // group /
My version on Linux Ubuntu 14.04 :
ncks --version
NCO netCDF Operators version "4.4.2" last modified 2014/02/17 built Apr 13 2014 on toyol by buildd
ncks version 4.4.2
The current version on OSX with Brew :
ncks --version
NCO netCDF Operators version 4.7.4 built by brew on Sierra-2.local at Apr 20 2018 13:28:14
ncks version 4.7.4
As announced ~6 months in advance, NCO printing defaults changed in version 4.6.9 (october 2017). To recover the old behavior, use the --trd option
ncks -C -v three_dmn_var in.ncp.s. I just updated the manual to add "--trd" in more places where I had forgotten to change it. Thank you for pointing this out!
thanks
In fact, reading again and again the doc, at the end I tested this option, and recover usual behavior.
As an external user of this lib, it is a major trouble since it's broke the compatibility
bewteen versions ! (and now I have to add an extra test in mys scripts :(
A.
PS: may I suggest you clarify how to get the "in.nc" file ? it is really useful.
PPS: with the Git version, "make check" is not working, and the "configure" version is not
compiling on my old ubuntu 14.04