Re: array reduction

From: Rick Brownrigg <brownrig_at_nyahnyahspammersnyahnyah>
Date: Thu Jun 20 2013 - 13:53:41 MDT

Is this what you want?

  newArray = oldArray(::2,::2)

RB

On Jun 20, 2013, at 1:36 PM, Brian Jamison <brian.d.jamison@noaa.gov> wrote:

> I was wondering if there is a clever way to get every other element of a 2D array, and put it
> in a new array. I have a global data file at 1/12 degree resolution and would like to make one
> at 1/6 degree resolution. I know I can do this in a nested loop, but it might be pretty slow
> (over 900000 points).
>
> Any help you can give is greatly appreciated.
>
> Thanks,
>
> Brian
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Jun 20 13:53:50 2013

This archive was generated by hypermail 2.1.8 : Mon Jun 24 2013 - 11:46:47 MDT