dar month, resulting in 12 bins per year.</p><p><tt>[xg, yr] = reshapetimeseries(t, x, 'func', @func)</tt> applies the function handle <tt>@func</tt> to data in a bin.  @func should accept a vector of values and return a scalar.  The default is to average data (i.e. @nanmean).</p><p><tt>[xg, yr] = reshapetimeseries(t, x, 'yrlim', yrlim)</tt> returns a reshaped grid of data spanning the year limits in the 1 x 2 vector <tt>yrlim</tt>.  This can be used to create an output dataset that spans more or fewer year