RE: [ncl-talk] on overlaying terrain cross-section

From: <Oliver.Fuhrer_at_nyahnyahspammersnyahnyah>
Date: Thu Dec 17 2009 - 02:07:57 MST

Hi Prabhakar,

If you draw a vertical section in terrain-following coordinates using
the "Triangular Mesh" transformation, it's very easy to attach a line
representing the topography to the plot (see attached example).
Something like this...

    r = True
    r@gsLineColor = "black"
    r@gsLineThicknessF = 1.0
    plt@topopoly = gsn_add_polyline(wks,plt,x,topo,r)
    delete(r)

...will do the trick. You will need to know the vectors describing the
x-axis locations (x) and topography (topo) and plt would be the plot you
got back from plt = gsn_contour.

Hope this helps,
Oli
 

> -----Original Message-----
> From: ncl-talk-bounces@ucar.edu
> [mailto:ncl-talk-bounces@ucar.edu] On Behalf Of Mary Haley
> Sent: Dienstag, 15. Dezember 2009 16:13
> To: p s
> Cc: ncl-talk@ucar.edu
> Subject: Re: on overlaying terrain cross-section
>
> Dear Prabhakar,
>
> Can you send a sample image that shows what you mean by not being
> able to discern the terrain?
> We might be able to figure out another way for you to draw the image.
>
> --Mary
>
> On Dec 13, 2009, at 9:02 AM, p s wrote:
>
> > Hi,
> > I am using the "Triangular Mesh" transformation to plot the
> terrain
> > following co-ordinate model data. However, if I set the contour
> > fill to FALSE, and use contour lines instead, its difficult to
> > discern the terrain , especially when plotting cloud fields. Is
> > their another way to overlay the plot of terrain ?
> > Regards,
> > Prabhakar
> >
> > _______________________________________________
> > 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
>

vertsec.png
Received on Thu Dec 17 02:08:20 2009

This archive was generated by hypermail 2.1.8 : Mon Dec 21 2009 - 09:22:56 MST