Re: Small/Medium Circles..

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Thu Sep 29 2011 - 09:45:28 MDT

Hi Erick,
Take a look at the contributed.ncl / shea_util.ncl scripts. Each one
contains numerous functions, from simple to complex. This is what I do
when I need to (re)learn how to create a function..

$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl
$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl

Adam

On 09/29/2011 09:09 AM, Erick Rivera Lemus wrote:
> David and Adam
>
> I appreciate the time you guys took to explain and give me some
> suggestions. I tried your methods and they work, but they do not reflect
> what I want to show. Scaling is kinda tricky. So what I am doing is to
> calculate from a giving lat, lon and the radius (in this case the
> storm). I am calculating its exact size. It has been a good challenge. I
> will like to make it into a function but I am not sure how to do it. If
> you guys are familiar with Matlab there is a function with similar
> function is called the scircle1. However I based my calculations from an
> in-house function here at Rutgers done by John Kerfoot that calculates
> the outerside position given a lat lon and radii.
>
>
> Again I appreciate the help and if you have any suggestion on how to
> write it into a function will be great.
>
> Cheers,
> Erick Rafael Rivera Lemus
> Software Technician
> Institute of Marine and Coastal Sciences
> Coastal Ocean Observation Laboratory
>
> Rutgers, The State University of New Jersey
> 71 Dudley Road New Brunswick, NJ 08901
>
> Office: 848-932-3261
> Fax: 732-932-8578
> Cell: 617-447-5106
>
>
>
>
>
>
>
>
>
>
>
>
>
> On Sep 28, 2011, at 2:33 PM, David Brown wrote:
>
>>
>> I see that Adam has sent an answer concerning how to get a realistic
>> size for each filled circle. I have just created an example that has a
>> very crude representation of a possible hurricane track -- 3 locations
>> only. It modifies the example polyg_8.ncl. Your situation is actually
>> simpler than polyg_8, because you basically just need to draw one
>> circle at a time. So you can see that mostly I just removed code from
>> the original example.
>> -dave
>> <track.ncl>
>>
>>
>>
>> On Sep 28, 2011, at 7:48 AM, Erick Rivera Lemus wrote:
>>
>>> Hi David,
>>>
>>> Yes I see example 8. But the data that I have is
>>> lat lon and radius of isobar. The position changes as well as the
>>> radius. I am not sure how to use the example since we are trying to
>>> show the actual radius of the storm moving along the northeast. I
>>> want to show the size of the storm. Do you have any suggestions on
>>> how to do it using the example you sent me?
>>>
>>> Thanks.
>>>
>>>
>>> Cheers,
>>> Erick Rafael Rivera Lemus
>>> Software Technician
>>> Institute of Marine and Coastal Sciences
>>> Coastal Ocean Observation Laboratory
>>>
>>> Rutgers, The State University of New Jersey
>>> 71 Dudley Road New Brunswick, NJ 08901
>>>
>>> Office: 848-932-3261
>>> Fax: 732-932-8578
>>> Cell: 617-447-5106
>>>
>>>
>>>
>>>
>>> <OI_MARA_2011_08_28_0300.jpg>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Sep 27, 2011, at 4:53 PM, David Brown wrote:
>>>
>>>>
>>>> For filled circles you can use poly marker index 16, or for an empty
>>>> circle you can use index 4. You can control the size using
>>>> gsMarkerSizeF. See http://www.ncl.ucar.edu/Applications/polyg.shtml,
>>>> example 8.
>>>> -dave
>>>>
>>>>
>>>> On Sep 27, 2011, at 2:27 PM, Erick Rivera Lemus wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> I Have a question about circles. Is there a function on NCL that is
>>>>> able to create circles based upon the lat, lon and radius that you
>>>>> specify?
>>>>>
>>>>> In my example I have a map and I have a marker with constant width
>>>>> for each hour. I have data that represent the range in width due to
>>>>> pressure and winds. So for example when is closer to the water I
>>>>> expect the width of the marker to be bigger and smaller as it
>>>>> approaches closer to land. Is there any function that shapes
>>>>> markers according to lat lon and radius.
>>>>>
>>>>> I would like to plot small or medium circles on a map that would
>>>>> give us a better representation of Hurricane Irene as it made his
>>>>> travel along the NE.
>>>>>
>>>>> Thanks in advance.
>>>>>
>>>>> PS. I sent an image to previous email but It was hold by moderator
>>>>> due to image size.
>>>>>
>>>>>
>>>>> Cheers,
>>>>> Erick Rafael Rivera Lemus
>>>>> Software Technician
>>>>> Institute of Marine and Coastal Sciences
>>>>> Coastal Ocean Observation Laboratory
>>>>>
>>>>> Rutgers, The State University of New Jersey
>>>>> 71 Dudley Road New Brunswick, NJ 08901
>>>>>
>>>>> Office: 848-932-3261
>>>>> Fax: 732-932-8578
>>>>> Cell: 617-447-5106
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> 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 Thu Sep 29 09:45:35 2011

This archive was generated by hypermail 2.1.8 : Sun Oct 09 2011 - 13:05:26 MDT