[ncl-talk] how to prepare data to plot some lightning strike density maps

Mary Haley haley at ucar.edu
Tue Jun 13 08:31:32 MDT 2017


Dear Damjan,

I think what you want is the "pdfx" function in NCL.  See the attached
script "bin_test_data.ncl" and the bintest1*000*png PNG images.

http://www.ncl.ucar.edu/Document/Functions/Contributed/pdfx.shtml

You can see some PDF examples at:

http://www.ncl.ucar.edu/Applications/pdf.shtml

The pdfx function operates on the whole data array, regardless of its
dimensionality. If you want to do each of your 1501 sets of values
separately, then see the bin_test_test_2.ncl script and the bintest2.png
image.

--Mary


On Tue, Jun 13, 2017 at 2:22 AM, Damjan Jelić <damjan.jelic at fmf.uni-lj.si>
wrote:

> Dear NCL support,
>
> im trying to prepare data to plot some lightning strike density maps.
> Problem is efficient way of sorting informations (lat-lon pairs). For now
> im using matlab functions like "hist3" which is very fast in sorting my
> data into bins of equal values so on the end i get 2d field with values of
> strikes per bin. However I would like to do all of my work in NCL and im
> hoping that NCL has something appropriate for the job. Im attaching a test
> file containing coordinate pairs i would like to sort with accuracy of
> ~0.01° and ~0.0002°. Can you help me in any way?
>
> Sincerely,
> Damjan
> _______________________________________________
> 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/20170613/8878b3d8/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bintest2.png
Type: image/png
Size: 52900 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170613/8878b3d8/attachment.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin_test_data_2.ncl
Type: application/octet-stream
Size: 1518 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170613/8878b3d8/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bintest1.000001.png
Type: image/png
Size: 35712 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170613/8878b3d8/attachment-0001.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bintest1.000002.png
Type: image/png
Size: 28678 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170613/8878b3d8/attachment-0002.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin_test_data.ncl
Type: application/octet-stream
Size: 1378 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170613/8878b3d8/attachment-0001.obj 


More information about the ncl-talk mailing list