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