Ncrcat concatenates (glues together) files across the record dimension, which is usually time. It can be used to create files that contain multiple years of the same month or season, such as "anni" or "juli" files. It may also be used to glue individual year files into a single file, thus creating a "moni" file.
Creating a "moni" file
You have five files, each of which have twelve months of data in them (Jan-Dec). You want to glue them together to create a single file that will contain all the months for five years - a "moni" file. Therefore instead of having five files with twelve months each, you will end up with a file with 60 time steps (5 years of 12 months = 60 months).
Using the files from the previous example, the command would be:
ncrcat -n 5,5,1 ha.F1.PBC_TPBOX.00510.nc ha.F1.PBC_TPBOX.moni.nc
You have five files, each of which have twelve months of data in them (Jan-Dec). You want to create files that contain 5 years of January, 5 years of February... 5 years of December (i.e., jani,febi,...deci files). You also want to create an "anni" file (5 years of annual average). First we create the individual months files, then the anni file. Using the same files as the above example, the command to create the january individual year file (jani-we call it "moni01") is:
ncrcat -F -d time,1,,12 -n 5,5,1 ha.F1.PBC_TPBOX.00510.nc moni01.nc
To create the febi ("moni02") file, you would change the increment of time to 2:
ncrcat -F -d time,2,,12 -n 5,5,1 ha.F1.PBC_TPBOX.00510.nc moni02.nc
Creating an anni file
And so on. Once you have made the twelve individual files, (moni01.nc through moni12.nc), you can create an anni file using the
ncea -p -n 12,2,1 moni01.nc anni.nc
Notice that the file input command
"-n 12,2,1" has changed, since we now have 12 input files (moni01-mon12), and each file name has two digits (moni01.nc-moni12.nc).