[ncl-talk] Query related to Multiple Cyclonic tracks.
Mary Haley
haley at ucar.edu
Fri Feb 2 09:37:48 MST 2018
Hi Barry,
Thanks for providing a sample trajectory script.
I did try to run it, and got an error about not having enough colors. This
is due to the code that gets the pressure ranges. A pressure range of "3"
is being hard-coded, but the pressures (in one case) go from 2629 to 2924,
which gives you over 90 levels.
I cleaned up this code a little to fix this, and hopefully make it so you
don't need to hard-code the pressure increment. Note: this code assumes
that the pressures can be nicely represented by integers.
;----------------------------------------------------------------------
; Calculate the pressure range for coloring markers.
;----------------------------------------------------------------------
function get_pressure_range(pres)
begin
; pres_incr = 3 ; Increment for pressure
values
; pres_start = min(toint(pres))+pres_incr ; start a little above the
minimum pressure
; pres_end = max(toint(pres))-pres_incr ; end a little below the
maximum pressure
mnmxint = nice_mnmxintvl( min(pres), max(pres), 18, False)
pres_start = toint(mnmxint(0))
pres_end = toint(mnmxint(1))
pres_incr = toint(mnmxint(2))
if(pres_incr.eq.0) then
print("get_pressure_range: ERROR: pres_incr = 0, can't continue")
exit
end if
pres_span = ispan(pres_start,pres_end,pres_incr)
return(pres_span)
end
--Mary
On Fri, Feb 2, 2018 at 4:08 AM, Barry Lynn via ncl-talk <ncl-talk at ucar.edu>
wrote:
> Please find.
>
> On Fri, Feb 2, 2018 at 8:24 AM, revathi cherry via ncl-talk <
> ncl-talk at ucar.edu> wrote:
>
>> Hello Everyone !
>>
>> I am G. Revathi from India.
>>
>> I am new to this NCL group. I am working on multiple cyclone tracks.
>>
>> Please anyone could inform me how to write a sample script for multiple
>> cyclonic tracks as I really need it. It will help my thesis work.
>> Anyone's work would be highly appreciated.
>>
>>
>> With Regards!
>>
>> *Gandiboyina Revathi*
>> Research Scholar
>> Department of Meteorology and Oceanography
>> Andhra University.
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>
>
> --
> Barry H. Lynn, Ph.D
> Senior Lecturer,
> The Institute of the Earth Science,
> The Hebrew University of Jerusalem,
> Givat Ram, Jerusalem 91904, Israel
> Tel: 972 547 231 170
> Fax: (972)-25662581
>
> C.E.O, Weather It Is, LTD
> Weather and Climate Focus
> http://weather-it-is.com
> Jerusalem, Israel
> Local: 02 930 9525
> Cell: 054 7 231 170
> Int-IS: x972 2 930 9525
> US 914 432 3108 <(914)%20432-3108>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> 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/20180202/25d694ba/attachment.html>
More information about the ncl-talk
mailing list