Re: how to draw a circle wrapping a few points

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Tue Jul 30 2013 - 07:42:17 MDT

The "circle_ll" procedure created by Arindam is located
in "shea_util.ncl". It is *not* an NCL supported procedure
at this time.

It is not publicly documented. You can see the
available documentation by

%> less $NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl

and search for "circle_ll"

=====
Good luck

On 7/30/13 5:39 AM, Arindam Chakraborty wrote:
> Hi,
> sometime ago I've shared a function circle_ll() which can draw
> circle/ellipse on a plot with least effort. Please see this thread:
> http://www.ncl.ucar.edu/Support/talk_archives/2012/1334.html
>
> This function might help you.
>
> regards,
> --
> *Dr Arindam Chakraborty*
> CAOS, IISc, Bangalore-12*
> *
>
>
> On Tue, Jul 30, 2013 at 3:29 AM, Mary Haley <haley@ucar.edu> wrote:
>
>> There's no automatic function to draw a circle on a plot. The best way to
>> do this currently is to use gsn_polyline or gsn_add_polyline. See the
>> attached sample script.
>>
>> You didn't say how you wanted to determine where to draw the circle and
>> how big. I just used some dummy values in this example.
>>
>> Note the circle is not perfectly round here. That's because the plot area
>> that I'm drawing in has a range of 24 on the Y axis, and 21 on the X axis.
>>
>> If you uncomment these lines, the circle will be perfectly round:
>>
>> ; res@trXMinF = xmin
>> ; res@trXMaxF = xmax
>> ; res@trYMinF = ymin
>> ; res@trYMaxF = ymax
>>
>>
>>
>> --Mary
>>
>>
>>
>> On Jul 27, 2013, at 4:47 PM, 雷霆 <leiting2002@hotmail.com> wrote:
>>
>> Dear NCLers,
>> For several curves plotted by gsn_xy, I want to draw,say, an empty circle
>> to
>> wrap a few points in the former. I checked up with the ncl-talk archive,
>> seems, to draw a marker of cycles can do this.
>> However, that needs much tuning of the radius of the marker (circles,
>> here) to do it.
>> Are there any simpler methods in NCL to do this?
>> Your help is appreciated.
>> Best,
>> Ting Lei
>> _______________________________________________
>> 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
>>
>>
>
>
>
> _______________________________________________
> 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 Tue Jul 30 07:42:23 2013

This archive was generated by hypermail 2.1.8 : Thu Aug 01 2013 - 15:55:04 MDT