[ncl-talk] Regarding annotation

swati shewale shewaleswati16 at gmail.com
Tue Dec 5 03:59:00 MST 2017


about above query, I went through function 'str_get_cols'. I understood it.
Now I want to put single city (Ahmedabad) annotation in my plotting. I am
afraid as am handling wrf file, Can I  accommodate it? please find the
attachment, annotation.txt (contains single city), annotation.ncl (wish to
put all the statements from this file to wrf_annotation.ncl so that It
could reflect Ahmedabad city). kindly provide suggestion.

On Tue, Dec 5, 2017 at 12:30 PM, swati shewale <shewaleswati16 at gmail.com>
wrote:

> Thanks a lot Mary for quick response. I did download text file provided in
> link before running annotation_5.ncl. Actually to see values of lons in
> print statement, I removed minus sign from below statement that leads to
> blank plot (this I rectify while comparing with your script, thanks for
> your time). If text file includes all positive lons, why here used minus?
>   lons       = -tofloat(str_get_field(data,3," "))
>
> Also what 22 signifies in below statement
>
>    city_state = str_get_cols(data,22,-1)
>
> On Mon, Dec 4, 2017 at 9:32 PM, Mary Haley <haley at ucar.edu> wrote:
>
>> This example works with NCL V6.2.0 (I just verified this). However, I
>> still highly recommend that you upgrade. V6.2.0 is 3.5 years old.
>>
>> Did you modify annotate_5.ncl at all?  I've attached a version that loops
>> through each city and plots each text string and marker one at a time, just
>> in case.
>>
>> This method is NOT recommended as it is slower and more memory intensive.
>>
>> If this continues to not work for you, then please include the full
>> script and the annotate5.txt file you are using, so we can be sure
>> something else isn't going on.
>>
>> --Mary
>>
>>
>> On Mon, Dec 4, 2017 at 3:48 AM, swati shewale <shewaleswati16 at gmail.com>
>> wrote:
>>
>>> Dear NCL users
>>>
>>> I wish to add annotations to my plot. I gone through below link.
>>>
>>> https://www.ncl.ucar.edu/Applications/annotate.shtml
>>>
>>> for time being I took example 5 (annotate_5.ncl
>>> <https://www.ncl.ucar.edu/Applications/Scripts/annotate_5.ncl>) as it
>>> is, It gives me plot without annotation (attached here). Is it because my
>>> NCL version is 6.2.0?
>>>
>>>
>>> _______________________________________________
>>> 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/20171205/e08d5ed2/attachment.html>
-------------- next part --------------
[Ahm]  23.0   72.5    Ahmedabad,IN
-------------- next part --------------
A non-text attachment was scrubbed...
Name: annotate.ncl
Type: application/octet-stream
Size: 979 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20171205/e08d5ed2/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wrf_annotation.ncl
Type: application/octet-stream
Size: 4313 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20171205/e08d5ed2/attachment-0001.obj>


More information about the ncl-talk mailing list