Re: dim_avg_n problem

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Tue Oct 22 2013 - 15:29:24 MDT

Hi Cheryl,
Please add the following code to your script and respond back to the
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,
Adam

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)
>
> --
> Please read the Mini-Language Manual (Section 5.6.1)
>
> 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

-- 
______________________________________________________________
Adam Phillips                                asphilli@ucar.edu
NCAR/Climate and Global Dynamics Division       (303) 497-1726
P.O. Box 3000				
Boulder, CO 80307-3000    http://www.cgd.ucar.edu/cas/asphilli

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Oct 22 15:29:33 2013

This archive was generated by hypermail 2.1.8 : Fri Nov 01 2013 - 08:58:14 MDT