<div dir="ltr"><div class="gmail_default" style="font-size:small">Dear Damjan,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">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.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/pdfx.shtml">http://www.ncl.ucar.edu/Document/Functions/Contributed/pdfx.shtml</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">You can see some PDF examples at:</div><div class="gmail_default"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/pdf.shtml">http://www.ncl.ucar.edu/Applications/pdf.shtml</a><br></div><div class="gmail_default"><br></div><div class="gmail_default" style="font-size:small">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.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 13, 2017 at 2:22 AM, Damjan Jelić <span dir="ltr"><<a href="mailto:damjan.jelic@fmf.uni-lj.si" target="_blank">damjan.jelic@fmf.uni-lj.si</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear NCL support,<br>
<br>
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?<br>
<br>
Sincerely,<br>
Damjan<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>