[SciPy-User] numpy array append

Robert Kern robert.kern@gmail....
Tue Aug 16 21:27:37 CDT 2011

On Tue, Aug 16, 2011 at 19:42, questions anon <questions.anon@gmail.com> wrote:
> Thanks Tim, that worked although I did run into a problem with different the
> sizes of each file.
> Each netcdf file contains a month of hourly data and some of those months
> are 31 days and some are 28 or 30. Is there a way to get this to work?

You probably want the following:

  big_array = N.concatenate(all_TSFC)
  Mean = big_array.mean(axis=0)

Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco

More information about the SciPy-User mailing list