# Re: dim_avg_n problem

Date: Tue Oct 22 2013 - 15:29:24 MDT

Hi Cheryl,
ncl-talk email list with the results:

printVarSummary(f)
ff = dim_avg_n_Wrap(f,0)
printVarSummary(ff)

I not sure what you mean by: "Lon in the contour plotting changed 180
degree compare to the plotting for each time. " Can you also send back
some plots showing the issue?

Thanks,

On 10/22/2013 08:27 AM, cheryl Ma wrote:
> Thanks, Dennis.
>
> The problem is still there. Lon in the contour plotting changed 180
> degree compare to the plotting for each time.
>
>
> On Tue, Oct 22, 2013 at 10:08 AM, Dennis Shea <shea@ucar.edu
> <mailto:shea@ucar.edu>> wrote:
>
> You should use
>
> ff = dim_ang_n_Wrap(f, 0)
>
> --
>
> http://www.ncl.ucar.edu/Document/Manuals/language_man.pdf
>
>
> On 10/22/13 7:31 AM, cheryl Ma wrote:
>
> Hi everyone,
>
> I made contour plotting to an array f (time,lat,lon) on each
> time and
> checked lat and lon using printVarSummary(f), and the f look
> good as
>
> Number of Dimensions: 3
> Dimensions and sizes: [31] x [lat | 180] x [lon | 360]
> Coordinates:
> lat: [-89.5..89.5]
> lon: [-179.5..179.5]
>
> But when I calculate the average by using ff=dim_avg_n(f),
> printVarSummary(ff) does not show the Coordinates, i.e.
>
> Number of Dimensions: 2
> Dimensions and sizes: [180] x [360]
> Coordinates:
>
> Also I made a contour plot of ff and saw that somehow the lon
> changed by
> 180 degree. dim_avg_n suppose keep the original lat and lon,
> right?
>
> what caused the change of lon? thanks,
>
>
>
> _______________________________________________
> 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

```--
______________________________________________________________