Hi,
I want to plot contours but in smoothing way, is there any command in NCL can I use to have a smoothing contours
thanks
Mohamed Ibrahim El-Sayed OMAR
Egyptian Meteorological Authority
Scientific Research Department
Climate Studies Centre
Kobry El-Quobba, P.O.Box. 11784
Cairo, EGYPT
Mobil phone : 002 0160802805
Home Phone : 002 0482370261
________________________________
From: "ncl-talk-request_at_ucar.edu" <ncl-talk-request_at_ucar.edu>
To: ncl-talk_at_ucar.edu
Sent: Wednesday, August 24, 2011 9:00 PM
Subject: ncl-talk Digest, Vol 93, Issue 37
Send ncl-talk mailing list submissions to
ncl-talk_at_ucar.edu
To subscribe or unsubscribe via the World Wide Web, visit
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
or, via email, send a message with subject or body 'help' to
ncl-talk-request_at_ucar.edu
You can reach the person managing the list at
ncl-talk-owner_at_ucar.edu
When replying, please edit your Subject line so it is more specific
than "Re: Contents of ncl-talk digest..."
Today's Topics:
1. Re: Add points of interes to a background map (Rick Brownrigg)
2. Re: Add points of interes to a background map (Adam Phillips)
----------------------------------------------------------------------
Message: 1
Date: Wed, 24 Aug 2011 08:51:04 -0600
From: Rick Brownrigg <brownrig_at_ucar.edu>
Subject: Re: Add points of interes to a background map
To: Vanesa Bdm <vane_bdm_at_yahoo.com.ar>
Cc: "ncl-talk_at_ucar.edu" <ncl-talk_at_ucar.edu>
Message-ID: <29B51C63-6E25-4826-9DAE-472FDEA6E3C2_at_ucar.edu>
Content-Type: text/plain; charset="us-ascii"
Hi,
Its curious that you're able to draw from 2 of the shapefiles, but not the 3rd. Would you mind posting or emailing your script?
Rick
On Aug 24, 2011, at 8:34 AM, Vanesa Bdm wrote:
> Hi Adam, thanks for the answer.
> I can't make this work.
> I have 3 shapefiles, a map, a poligon and points of interest.
> I can draw map and poligon but I can't add the points of interest.
> If you see the shapefile script MAry worte a function there that I call from aeronavegacion, I load the 2 shapefiles and draw them ok, but how can I add the points also?
> I attach an image of the map and poligon so you can see that.
>
> Cheers
>
> > Date: Fri, 19 Aug 2011 14:49:42 -0600
> > From: asphilli_at_ucar.edu
> > To: ncl-talk_at_ucar.edu
> > Subject: Re: Add points of interes to a background map
> >
> > You're having trouble with shapefiles_point.ncl, correct?
> >
> > If so, then I think I know what the problem is. You need to add:
> > res_at_gsnDraw = False ; do not draw the plot
> > res_at_gsnFrame = False ; do not advance the frame (=flip the page)
> >
> > You correctly call draw(map) and frame(wks) after the polymarkers are
> > drawn, but you need to tell NCL to not draw the plot or advance the
> > frame until the polymarkers are drawn. Without that, any polymarkers
> > will not be added properly.
> >
> > Note that in your aeornavegacion_300.ncl script, you set
> > pltres_at_PanelPlot = True. What this does (behind the scenes) is to set
> > gsnDraw = False and gsnFrame = False when you call the WRF plotting
> > function wrf_map_overlays, which again is a necessary precondition to
> > using any of the gsn_add_* functions..
> >
> > Hope that helps! Adam
> >
> > On 08/19/2011 02:14 PM, Vanesa Bdm wrote:
> > > Hello a few months ago, Mary and Dennis help me to add a backgrond map
> > > to my scripts.
> > > Now I need to add towns (points of interest).
> > > I can do exactly that but separetly, I edit shapiles_6.ncl and I can see
> > > all my points, and I try, but with no success to add those points to my
> > > script so I can see all together.
> > >
> > > Any ideas?
> > >
> > > Cheers
> > >
> > >
> > >
> > > _______________________________________________
> > > ncl-talk mailing list
> > > List instructions, subscriber options, unsubscribe:
> > > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> >
> > --
> > ______________________________________________________________
> > Adam Phillips asphilli_at_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
> <aeronavegacion_300-0.png>_______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20110824/3c510552/attachment.html
------------------------------
Message: 2
Date: Wed, 24 Aug 2011 10:08:58 -0600
From: Adam Phillips <asphilli_at_ucar.edu>
Subject: Re: Add points of interes to a background map
To: ncl-talk_at_ucar.edu
Message-ID: <4E55221A.9010801_at_ucar.edu>
Content-Type: text/plain; charset=UTF-8; format=flowed
Hi Vanesa,
I wasn't as clear in my original response as I should have been. Here's
the order of things you should do in order for everything to draw:
pltres_at_PanelPlot = True ; = gsnFrame,gsnDraw = False
........
plot = wrf_map_overlays(....,pltres,mpres)
call gsn_add_polymarker/gsn_add_text for polymarkers/text
draw(plot)
draw_shapefile_lines(wks,plot) ; use gsn_polyline
frame(wks)
The reason for that order: Anytime you use gsn_add_* functions they need
to be called before the plot is drawn and the frame is advanced. If you
do not do that the gsn_add_* output will not be added to the plot.
gsn_polyline (which draw_shapefile_lines uses) on the other hand, needs
the plot to be drawn before it is called.
I would recommend simplifying your script to test this out. Create the
plot, manually call gsn_add_polymarker, call draw, then manually call
gsn_polyline, then call frame..
Hope that all makes sense.. If you continue to have issues please send
ncl-talk the latest version of all three of your scripts...
Adam
On 08/24/2011 08:34 AM, Vanesa Bdm wrote:
> Hi Adam, thanks for the answer.
> I can't make this work.
> I have 3 shapefiles, a map, a poligon and points of interest.
> I can draw map and poligon but I can't add the points of interest.
> If you see the shapefile script MAry worte a function there that I call
> from aeronavegacion, I load the 2 shapefiles and draw them ok, but how
> can I add the points also?
> I attach an image of the map and poligon so you can see that.
>
> Cheers
>
> > Date: Fri, 19 Aug 2011 14:49:42 -0600
> > From: asphilli_at_ucar.edu
> > To: ncl-talk_at_ucar.edu
> > Subject: Re: Add points of interes to a background map
> >
> > You're having trouble with shapefiles_point.ncl, correct?
> >
> > If so, then I think I know what the problem is. You need to add:
> > res_at_gsnDraw = False ; do not draw the plot
> > res_at_gsnFrame = False ; do not advance the frame (=flip the page)
> >
> > You correctly call draw(map) and frame(wks) after the polymarkers are
> > drawn, but you need to tell NCL to not draw the plot or advance the
> > frame until the polymarkers are drawn. Without that, any polymarkers
> > will not be added properly.
> >
> > Note that in your aeornavegacion_300.ncl script, you set
> > pltres_at_PanelPlot = True. What this does (behind the scenes) is to set
> > gsnDraw = False and gsnFrame = False when you call the WRF plotting
> > function wrf_map_overlays, which again is a necessary precondition to
> > using any of the gsn_add_* functions..
> >
> > Hope that helps! Adam
> >
> > On 08/19/2011 02:14 PM, Vanesa Bdm wrote:
> > > Hello a few months ago, Mary and Dennis help me to add a backgrond map
> > > to my scripts.
> > > Now I need to add towns (points of interest).
> > > I can do exactly that but separetly, I edit shapiles_6.ncl and I
> can see
> > > all my points, and I try, but with no success to add those points to my
> > > script so I can see all together.
> > >
> > > Any ideas?
> > >
> > > Cheers
> > >
> > >
> > >
> > > _______________________________________________
> > > ncl-talk mailing list
> > > List instructions, subscriber options, unsubscribe:
> > > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> >
> > --
> > ______________________________________________________________
> > Adam Phillips asphilli_at_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
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
--
______________________________________________________________
Adam Phillips asphilli_at_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
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
End of ncl-talk Digest, Vol 93, Issue 37
****************************************
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Aug 25 00:02:32 2011
This archive was generated by hypermail 2.1.8 : Thu Aug 25 2011 - 09:54:48 MDT