Hi Cathy,
You probably want the lonPivot function that lets you choose the longitude to pivot about. The example it gives (pivoting about 330) would work for the use case of -10 to 200.
-dave
On Nov 9, 2012, at 11:58 AM, Cathy Smith (NOAA Affiliate) wrote:
> All
>
> I have gridded data that generally goes from 0 to 360 in longitude
> (sometimes -180 to 180 though I can easily switch that to 0 to 360). I
> would like to produce area averages from this data.
> Sometimes, the area to be averaged will cross 0E (350E to 10E, say). I
> looked and could not find any routine that does this. I thought
> wgt_areaave_Wrap did but it doesn't seem to (and it doesn't give an error).
> How can I easily do this? A few ways that occurred to me are to append
> arrays in longitude (0 to 720) which will create very big arrays as I'm
> looking at time series. Another alternative is to split up
> the calculation at 0 but I would need to combine the results back
> together correctly. I could flip the longitude depending on the desired
> area but that wouldn't handle -10 to 200, for example though it would
> handle -10 to 120.
>
> I looked through examples and didn't see one though I would think it
> would be a common task. So, maybe I'm just misunderstanding something.
>
> Cathy Smith
>
> --
> ----------------------------------------------
> NOAA/ESRL PSD and CIRES CDC
> 303-497-6263
> http://www.esrl.noaa.gov/psd/people/cathy.smith/
>
> Emails about data/webpages may get quicker responses from emailing
> esrl.psd.data@noaa.gov
>
> _______________________________________________
> 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 Fri Nov 9 12:43:26 2012
This archive was generated by hypermail 2.1.8 : Tue Nov 13 2012 - 14:27:24 MST