Re: gsn_csm_hov for time-lat plot

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Mon Oct 22 2012 - 17:02:54 MDT

The question is a bit vague.

    x(time,lat,lon)

To learn how NCL operates .... try

    x1 = x(time|:,lon|:,lat|:) ; lat is rightmost
    printVarSummary(x1)
    print("rank_x1="+dimsizes(dimsizes(x2)))

    x2 = x(lon|:,lat|:,time|:) ; time is rightmost
    printVarSummary(x2)
    print("rank_x2="+dimsizes(dimsizes(x1)))

what do you notice about the following??

    x3 = x(lat|:,time|:,{lon|80})
    printVarSummary(x3)
    print("rank_x3="+dimsizes(dimsizes(x3)))

    x4 = x(lat|:,{lon|80},time|:)
    printVarSummary(x4)
    print("rank_x4="+dimsizes(dimsizes(x4)))

    x5 = x({lon|80},time|:,lat|:)
    printVarSummary(x5)
    print("rank_x5="+dimsizes(dimsizes(x5)))

Try the following in your script

plot = gsn_csm_contour(wks, x({lon|80},time|:,lat|:), res )

If you are new to NCL, please read the Mini-Language Manual at:

    http://www.ncl.ucar.edu/Document/Manuals/

See Dimension reordering

On 10/22/2012 12:16 PM, Xi Chang wrote:
> Dear NCL users,
>
> Is it possible to use "gsn_csm_hov" to creat time(y)-latitude(x) plot
> instead of using "gsn_csm_time_lat"
> If it's possible anybody has an experience to shift the "lat" as the
> rightmost dimension.
>
> Thanks a lot,
>
> == Xi
>
>
> _______________________________________________
> 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 Mon Oct 22 17:03:03 2012

This archive was generated by hypermail 2.1.8 : Tue Oct 23 2012 - 11:10:04 MDT