1NCRA(1)                     General Commands Manual                    NCRA(1)
2
3
4

NAME

6       ncra - netCDF Record Averager
7

SYNTAX

9       ncra  [-3]  [-4]  [-5]  [-6] [-7] [-A] [--bfr sz_byt][-C][-c][--cnk_byt
10       sz_byt][--cnk_csh   sz_byt][--cnk_dmn   nm,sz_lmn]   [--cnk_map    map]
11       [--cnk_min  sz_byt]  [--cnk_plc plc] [--cnk_scl sz_lmn][-D dbg_lvl] [-d
12       dim,[  min][,[  max]][,  stride[[,[  subcycle]]]]]   [--dbl|flt]   [-F]
13       [--fl_fmt=fmt]  [-G gpe_dsc] [-g grp[,...]]  [--glb att_name= att_val]]
14       [-h] [--hdf] [--hdr_pad  sz_byt][--hpss_try]  [-L  dfl_lvl]  [-l  path]
15       [--mro]   [--msa]   [-N]   [-n   loop]   [--no_cll_msr]  [--no_cll_mth]
16       [--no_frm_trm] [--no_tmp_fl] [-O] [-p path] [--ppc var1[,  var2[,...]]=
17       prc]]  [-R]  [-r]  [--ram_all]  [--rec_apn]  [-t  thr_nbr]  [--unn] [-v
18       var[,...]]  [-w wgt] [-X box] [-x] [-y op_typ] input-files output-file
19

DESCRIPTION

21       ncra averages record variables across  an  arbitrary  number  of  input
22       files.   The  record  dimension  is  retained  as a degenerate (size 1)
23       dimension in the output variables.
24
25       Input files may vary in size, but each must have  a  record  dimension.
26       The  record  coordinate,  if any, should be monotonic for (or else non-
27       fatal warnings may be generated).  Hyperslabs of the  record  dimension
28       which  include more than one file are handled correctly.  ncra supports
29       the stride argument to the -d hyperslab option for the record dimension
30       only, stride is not supported for non-record dimensions.
31
32       ncra weights each record (e.g., time slice) in the input-files equally.
33       ncra does not attempt to see if, say, the time  coordinate  is  irregu‐
34       larly spaced and thus would require a weighted average in order to be a
35       true time average.
36

EXAMPLES

38       Average files 85.nc, 86.nc,  ...  89.nc along the record dimension, and
39       store the results in 8589.nc:
40              ncra 85.nc 86.nc 87.nc 88.nc 89.nc 8589.nc
41              ncra 8[56789].nc 8589.nc
42              ncra -n 5,2,1 85.nc 8589.nc
43       These three methods produce identical answers.
44
45       Assume  the files 85.nc, 86.nc,  ...  89.nc each contain a record coor‐
46       dinate time of length 12 defined such that the third  record  in  86.nc
47       contains  data  from  March  1986, etc.  NCO knows how to hyperslab the
48       record dimension across files.  Thus, to average  data  from  December,
49       1985 through February, 1986:
50              ncra -d time,11,13 85.nc 86.nc 87.nc 8512_8602.nc
51              ncra -F -d time,12,14 85.nc 86.nc 87.nc 8512_8602.nc
52       The  file  87.nc  is  superfluous, but does not cause an error.  The -F
53       turns on the Fortran (1-based) indexing convention.  The following uses
54       the stride option to average all the March temperature data from multi‐
55       ple input files into a single output file
56              ncra  -F  -d  time,3,,12  -v  temperature  85.nc   86.nc   87.nc
57              858687_03.nc
58
59       Assume the time coordinate is incrementally numbered such that January,
60       1985 = 1 and December, 1989 = 60.  Assuming ??   only  expands  to  the
61       five desired files, the following averages June, 1985--June, 1989:
62              ncra -d time,6.,54. ??.nc 8506_8906.nc
63
64

AUTHOR

66       NCO  manual pages written by Charlie Zender and originally formatted by
67       Brian Mays.
68
69

REPORTING BUGS

71       Report bugs to <http://sf.net/bugs/?group_id=3331>.
72
73
75       Copyright © 1995-2018 Charlie Zender
76       This is free software; see the source for copying conditions.  There is
77       NO  warranty;  not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
78       PURPOSE.
79
80

SEE ALSO

82       The full documentation for NCO is maintained as a Texinfo manual called
83       the  NCO Users Guide.  Because NCO is mathematical in nature, the docu‐
84       mentation includes TeX-intensive portions not  viewable  on  character-
85       based  displays.  Hence the only complete and authoritative versions of
86       the NCO Users Guide are the PDF (recommended), DVI, and Postscript ver‐
87       sions  at <http://nco.sf.net/nco.pdf>, <http://nco.sf.net/nco.dvi>, and
88       <http://nco.sf.net/nco.ps>, respectively.  HTML and  XML  versions  are
89       available          at          <http://nco.sf.net/nco.html>         and
90       <http://nco.sf.net/nco.xml>, respectively.
91
92       If the info and NCO programs are properly installed at your  site,  the
93       command
94
95              info nco
96
97       should  give  you  access  to  the complete manual, except for the TeX-
98       intensive portions.
99
100       ncap(1), ncap2(1), ncatted(1), ncbo(1), ncclimo(1), nces(1), ncecat(1),
101       ncflint(1),  ncks(1), nco(1), ncpdq(1), ncra(1), ncrcat(1), ncremap(1),
102       ncrename(1), ncwa(1)
103
104

HOMEPAGE

106       The NCO homepage at <http://nco.sf.net> contains more information.
107
108
109
110                                                                       NCRA(1)
Impressum