Re: array reduction

From: Brian Jamison - NOAA Affiliate <brian.d.jamison_at_nyahnyahspammersnyahnyah>
Date: Thu Jun 20 2013 - 14:25:09 MDT

Yes, I think that'll work. Thanks!

Brian

On Thu, Jun 20, 2013 at 1:53 PM, Rick Brownrigg <brownrig@ucar.edu> wrote:

> 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 14:25:33 2013

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