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