NetCDF operators (NCO) version 4.6.5

Version 4.6.5 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:

4.6.5 contains a potpurri of new features. Setting chunk cache size with --cnk_csh can accelerate aggregation of netCDF4 files. Climatology and regridder users may appreciate the cleaned-up output offered by the ncremap --vrb_lvl switch and more intelligent grid inferral. Everyone who has tried to convert "time since..." values to calendar dates will like the new ncks --cal switch that does the UDUnits conversion for you. There are also helpful bugfixes for ncap2 attribute propagation in corner cases, and corrected error codes for bad command line arguments.

New Features
  1. ncks allows setting chunk cache-size with --cnk_csh with all applicable operators. This sets the cache size for all variables. Users have demonstrated that increasing cache size can dramatically speed-up chunking operations on large datasets. This setting only works on netCDF4 files.
    ncrcat --cnk_csh=1000000000 --cnk_plc=g3d --cnk_dmn=time,365 \
    --cnk_dmn=lat,1800 --cnk_dmn=lon,3600 in*.nc4 out.nc4
    http://nco.sf.net/nco.html#cnk_csh
    Thanks to Hugo Oliveira for encouraging this feature
  2. ncks now prints the human-legible calendar string corresponding to values with UDUnits date units (time since basetime, e.g., "days since 2000-01-01") and CF calendar attribute, if any. Enact this with the --calendar option when printing. Using dbg_lvl >= 1 in CDL mode prints both the value and calendar string (one in comments):
    ncks -D 1 --cdl --cal -v tm_365 ~/nco/data/in.nc
    tm_365 = "2013-03-01"; // double value: 59
    ncks -D 1 --cdl -v tm_365 ~/nco/data/in.nc
    tm_365 = 59; // calendar format: "2013-03-01"
    This option is similar to the ncdump -t option. Does this work how you'd like? Let us know.
    http://nco.sf.net/nco.html#cal
  3. ncap2 now seamlessly edits character arrays. Suppose you have a string stored as an old school character array (not a netCDF4 string) with a fixed dimension size. ncap2 now supports altering the string value without having to manually pad the RHS to the exact dimension size of the LHS:
    ncap2 -s 'date_sng="2016-05-11_06:00:00"' in.nc out.nc
    ncap2 -s 'date_sng="automatic padding"' in.nc out.nc
    The exact same syntax has always worked on netCDF4 strings. This new feature frees users from needing to know the ugly details of netCDF3 string storage.
    http://nco.sf.net/nco.html#ncap2
  4. ncremap supports a verbosity level option, --vrb_lvl. Verbosity level is now independent of debug level, dbg_lvl, so users can customize how much ncremap information to print. Default vrb_lvl=2 and supported levels range from 0 (no output) to 4 (most verbose). The verbosity of the underlying remapping, which invokes ncks, is still controlled by dbg_lvl not vrb_lvl.
    ncremap --vrb_lvl=1 -i in.nc -m map.nc -o out.nc
    http://nco.sf.net/nco.html#ncremap
    Thanks to Milena Veneziani for requesting.
  5. ncremap and ncclimo now support a version option, --version. This option prints the operator version and configuration. It's a painless way to tell, e.g., if ncremap knows where your ESMF_RegridWeightGen executable is, and where these scripts look for NCO and what version of netCDF is linked to:
    ncremap --version
    ncclimo --version
    http://nco.sf.net/nco.html#ncremap
    http://nco.sf.net/nco.html#ncclimo
  6. ncremap and ncks now parse more unknown grids than before. The front-end of ncremap's grid-inferenence routine has been refactored to rely on less user-provided information about dimension names. Now it obtains more information than before by examining the grid coordinates. As a result, grids from data files with strange dimension names are likelier to be parsed.

Additional details are available in the ChangeLog.

Comments:

good

Posted by Na ZHAO on March 21, 2017 at 03:00 PM MDT #

Post a Comment:
Comments are closed for this entry.
News@Unidata
News and information from the Unidata Program Center
News@Unidata
News and information from the Unidata Program Center

Welcome

FAQs

Developers’ blog

Take a poll!

What if we had an ongoing user poll in here?

Browse By Topic
Browse by Topic
« December 2024
SunMonTueWedThuFriSat
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
    
       
Today