[ncl-talk] help reg plotting point data

Mary Haley haley at ucar.edu
Wed May 3 13:50:53 MDT 2017


Geeta,

It's not clear from the figure you attached what exactly is being drawn.
For example, which is the gray filled swath?

I think you can accomplish much of what you want by using markers filled in
different colors.

I wrote a short script to help you get started.

The file can be read with 'str_split_csv' because your fields are separated
by a single delimiter (a tab).

I used this to read off the lat/lon, then I created a simple map with
lightning markers at the lat/lon locations.

You can use any marker you want, of course, and you can make them different
sizes or colors depending on their scale.  See example polyg_8.ncl at:

http://www.ncl.ucar.edu/Applications/polyg.shtml#ex8

The example after this one shows how to add a labelbar.

--Mary




On Sat, Apr 29, 2017 at 11:15 PM, Geeta Geeta <geetag54 at yahoo.com> wrote:

> dear all.
> I am handling orbital data. KIndly see the image. This image contains the
> lighening flashes.
> The points where the flashes have been detected are in the columns 3 and
> 4. these points are not at regular intervals.
>
> 2009-135T17:16:02.89Z [May 15] 12.803 80.294 3727791 637 75 323
> 2009-135T17:16:03.13Z [May 15] 11.900 80.889 1878094 295 16 176
> 2009-135T17:16:03.57Z [May 15] 11.855 80.712 214268 343 8 35
> 2009-135T17:16:03.57Z [May 15] 11.798 80.942 4870 0 1 1
> 2009-135T17:16:03.61Z [May 15] 14.272 77.793 25061 92 4 5
> 2009-135T17:16:03.69Z [May 15] 14.275 77.644 17246 14 2 3
> 2009-135T17:16:03.92Z [May 15] 11.678 81.018 502901 293 16 66
> 2009-135T17:16:04.06Z [May 15] 12.752 80.407 224489 306 10 33
> 2009-135T17:16:04.19Z [May 15] 12.517 80.345 815693 610 17 80
> 2009-135T17:16:05.50Z [May 15] 11.763 80.945 123952 232 9 15
> 2009-135T17:16:05.53Z [May 15] 14.275 77.532 15155 0 1 2
> 2009-135T17:16:05.56Z [May 15] 11.753 80.734 18808 62 3 4
> 2009-135T17:16:05.65Z [May 15] 11.961 80.783 41066 161 2 6
> 2009-135T17:16:06.38Z [May 15] 12.514 80.392 1418501 370 35 121
> 2009-135T17:16:06.68Z [May 15] 11.471 81.077 57752 39 5 8
> 2009-135T17:16:06.75Z [May 15] 11.824 80.940 75117 136 2 10
> 2009-135T17:16:07.09Z [May 15] 11.896 80.774 27824 182 3 5
> 2009-135T17:16:07.10Z [May 15] 11.616 81.059 26419 0 1 4
> 2009-135T17:16:07.20Z [May 15] 11.960 80.743 292843 286 9 47
> 2009-135T17:16:07.87Z [May 15] 11.711 80.996 34763 224 6 6
> 2009-135T17:16:09.50Z [May 15] 11.876 80.760 1270442 495 16 113
> 2009-135T17:16:09.62Z [May 15] 11.645 81.078 229360 173 7 30
> 2009-135T17:16:09.79Z [May 15] 12.764 80.422 161536 275 11 31
> 2009-135T17:16:10.39Z [May 15] 11.664 80.982 57013 220 2 10
> 2009-135T17:16:10.53Z [May 15] 11.632 81.006 213758 162 7 28
> 2009-135T17:16:11.25Z [May 15] 12.944 80.153 1261461 546 49 162
> 2009-135T17:16:11.63Z [May 15] 12.930 80.257 28505 16 2 5
> 2009-135T17:16:11.77Z [May 15] 12.513 80.298 46628 57 3 9
> 2009-135T17:16:11.79Z [May 15] 12.818 80.091 276188 639 13 54
> 2009-135T17:16:12.07Z [May 15] 11.976 80.770 47943 73 4 6
> 2009-135T17:16:12.90Z [May 15] 12.532 80.362 481182 495 15 54
> 2009-135T17:16:12.95Z [May 15] 11.415 81.085 107851 320 8 19
> 2009-135T17:16:13.31Z [May 15] 11.769 80.697 19479 67 2 4
>
> suppose there are 10 lines like this, then there are 10 lighening flashes.
>
> I want to know how I should generate the figure like the one attached.
> i would be grateful if someone can suggest the logic.
>
> thanks
>
> Geeta.
>
> _______________________________________________
> 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/20170503/83d40d99/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lightning.png
Type: image/png
Size: 58480 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170503/83d40d99/attachment.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lightning_plot.ncl
Type: application/octet-stream
Size: 3021 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170503/83d40d99/attachment.obj 


More information about the ncl-talk mailing list