1NCAP2(1) General Commands Manual NCAP2(1)
2
3
4
6 ncap2 - netCDF Arithmetic Processor, Next Generation
7
9 ncap2 [-3] [-4] [-5] [-6] [-7] [-A] [--bfr sz_byt][-C][-c][-D dbg_lvl]
10 [-d dim,[ min][,[ max]]] [-F] [--fl_fmt=fmt] [-f] [--glb att_name=
11 att_val]] [-h] [--hdf] [--hdr_pad sz_byt] [-l path] [--no_tmp_fl] [-O]
12 [-o output-file] [-p path] [-R] [-r] [--ram_all] [-S script-file][-s
13 script][-t thr_nbr][-v var[,...]] input-file [ output-file ]
14
16 ncap2 supersedes and is backwards-compatible with ncap which is now
17 deprecated. Both operators arithmetically process netCDF files. The
18 primary ncap2 documentation is currently the sample script
19 <http://nco.sf.net/ncap2.in> The remainder of this manpage is identical
20 to the ncap manpage.
21
22 The processing instructions are contained either in the NCO script file
23 fl.nco or in a sequence of command line arguments. The options -s (or
24 long options --spt or --script) are used for in-line scripts and -S (or
25 long options --fl_spt or --script-file) are used to provide the file‐
26 name where (usually multiple) scripting commands are pre-stored. ncap2
27 was written to perform arbitrary albebraic transformations of data and
28 archive the results as easily as possible. Missing values are treated
29 correctly. The results of the algebraic manipulations are called
30 derived fields.
31
32 Unlike the other operators, ncap2 does not accept a list of variables
33 to be operated on as an argument to -v. Rather, the -v switch takes no
34 arguments and indicates that ncap2 should output only user-defined
35 variables. ncap2 does not accept or understand the -x switch.
36
38 Compute the square of variable T
39 ncap2 -s "T2=T*T" in.nc out.nc
40
41
43 NCO manual pages written by Charlie Zender and originally formatted by
44 Brian Mays.
45
46
48 Report bugs to <http://sf.net/bugs/?group_id=3331>.
49
50
52 Copyright © 1995-2018 Charlie Zender
53 This is free software; see the source for copying conditions. There is
54 NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
55 PURPOSE.
56
57
59 The full documentation for NCO is maintained as a Texinfo manual called
60 the NCO Users Guide. Because NCO is mathematical in nature, the docu‐
61 mentation includes TeX-intensive portions not viewable on character-
62 based displays. Hence the only complete and authoritative versions of
63 the NCO Users Guide are the PDF (recommended), DVI, and Postscript ver‐
64 sions at <http://nco.sf.net/nco.pdf>, <http://nco.sf.net/nco.dvi>, and
65 <http://nco.sf.net/nco.ps>, respectively. HTML and XML versions are
66 available at <http://nco.sf.net/nco.html> and
67 <http://nco.sf.net/nco.xml>, respectively.
68
69 If the info and NCO programs are properly installed at your site, the
70 command
71
72 info nco
73
74 should give you access to the complete manual, except for the TeX-
75 intensive portions.
76
77 ncap(1), ncap2(1), ncatted(1), ncbo(1), ncclimo(1), nces(1), ncecat(1),
78 ncflint(1), ncks(1), nco(1), ncpdq(1), ncra(1), ncrcat(1), ncremap(1),
79 ncrename(1), ncwa(1)
80
81
83 The NCO homepage at <http://nco.sf.net> contains more information.
84
85
86
87 NCAP2(1)