#!/bin/sh
# NCO script for concatenating boundary files along the various
# (non-record) time dimensions.

list=`ls *.nc`
for i in $list;
do
 ncecat -O $i $i # add the dimension 'record'
 ncpdq -O -a time,record $i $i # Switch "record" and "time"
 ncwa -O -a record $i $i # Remove "record" 
done
ncrcat -h *.nc out.nc

