<div dir="ltr"><div class="gmail_default" style="font-size:small">Geeta,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I&#39;m still not sure what you want. You said that the lat/lon of the two datasets don&#39;t match. Do you need them to &quot;match&quot; so you can do calculations using data from both files? If so, then you will likely need to regrid the point data to be on the same grid as the swath data, which you can do with ESMF regridding:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/ESMF.shtml">http://www.ncl.ucar.edu/Applications/ESMF.shtml</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">See example ESMF_regrid_21.ncl as a start, which regrids from point data to rectilinear data. Your swath data is likely curvilinear and not rectilinear, but the example will be similar.</div><div class="gmail_default"><br></div><div class="gmail_default">You can also visit the &quot;templates&quot; page:</div><div class="gmail_default"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/Templates/">http://www.ncl.ucar.edu/Applications/Templates/</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">and look at the &quot;ESM_unstruct_to_curv.ncl&quot; template script.</div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 5, 2017 at 9:00 AM, Geeta Geeta <span dir="ltr">&lt;<a href="mailto:geetag54@yahoo.com" target="_blank">geetag54@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:13px"><div id="m_2824680176108927616yui_3_16_0_ym19_1_1493978121223_67612"><span id="m_2824680176108927616yui_3_16_0_ym19_1_1493978121223_67879">Hi Mary and dave. </span></div><div id="m_2824680176108927616yui_3_16_0_ym19_1_1493978121223_67612">Thank you for plotting the Lightning data for me. </div><div id="m_2824680176108927616yui_3_16_0_ym19_1_1493978121223_67612"><br></div><div id="m_2824680176108927616yui_3_16_0_ym19_1_1493978121223_67612">I am using two datasets, LIS (Lightning, which is in HDF4 had issue with this file), and 2A25 which has reflectivity at 80 levels, both are Orbital data sets but with different swaths. Pls see the figures. </div><div id="m_2824680176108927616yui_3_16_0_ym19_1_1493978121223_67612"><br></div><div id="m_2824680176108927616yui_3_16_0_ym19_1_1493978121223_67612" dir="ltr">Lis is plotted at the locations where Lightning is seen. I have to extract the maxZ  at the locations where Lightning is seen (pls see the code, this would be 4th level of filtering that I will be doing to my Reflectivity data, ref to fig4.000007.png). </div><div id="m_2824680176108927616yui_3_16_0_ym19_1_1493978121223_67612" dir="ltr"><br></div><div id="m_2824680176108927616yui_3_16_0_ym19_1_1493978121223_67612" dir="ltr">My purpose is to show that &quot;<b id="m_2824680176108927616yui_3_16_0_ym19_1_1493978121223_77883">severe storms </b>are the ones that have lightning associated with them&quot;. Rest can be called as convective echoes.  </div><div id="m_2824680176108927616yui_3_16_0_ym19_1_1493978121223_67612" dir="ltr"><br></div><div id="m_2824680176108927616yui_3_16_0_ym19_1_1493978121223_67612" dir="ltr">My problem is that the Lat/lon of both datasets Do not match. One is a point data and the other is a swath data. </div><div id="m_2824680176108927616yui_3_16_0_ym19_1_1493978121223_67612"><br></div><div id="m_2824680176108927616yui_3_16_0_ym19_1_1493978121223_67612">I want to know if it is possible to do??? and how, what logic</div><div id="m_2824680176108927616yui_3_16_0_ym19_1_1493978121223_67612"><br></div><div id="m_2824680176108927616yui_3_16_0_ym19_1_1493978121223_67612" dir="ltr">you all do a great job in helping us. That is why i am able to move ahead</div><div></div><div id="m_2824680176108927616yui_3_16_0_ym19_1_1493978121223_67610"> thanks</div><div class="m_2824680176108927616signature" id="m_2824680176108927616yui_3_16_0_ym19_1_1493978121223_67608">Geeta.</div> <div class="m_2824680176108927616qtdSeparateBR"><br><br></div><div class="m_2824680176108927616yahoo_quoted" style="display:block"> <div style="font-family:Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:13px"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif;font-size:16px"><span class=""> <div dir="ltr"><font size="2" face="Arial"> On Friday, 5 May 2017 4:05 AM, Mary Haley &lt;<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>&gt; wrote:<br></font></div>  <br><br> </span><div class="m_2824680176108927616y_msg_container"><div id="m_2824680176108927616yiv6674687900"><div><div dir="ltr"><div class="m_2824680176108927616yiv6674687900gmail_default" style="font-size:small">Geeta,</div><div class="m_2824680176108927616yiv6674687900gmail_default" style="font-size:small"><br clear="none"></div><span class=""><div class="m_2824680176108927616yiv6674687900gmail_default" style="font-size:small">I&#39;m not clear on your question about extracting 2A25 reflectivity data depending on non-zero data of LIS. The text file I was looking at yesterday had no header information, so I have no idea what the various columns mean.</div><div class="m_2824680176108927616yiv6674687900gmail_default" style="font-size:small"><br clear="none"></div><div class="m_2824680176108927616yiv6674687900gmail_default" style="font-size:small">Also, you attached two plots, but I&#39;m not sure if you are trying to ask a specific question about them.</div><div class="m_2824680176108927616yiv6674687900gmail_default" style="font-size:small"><br clear="none"></div><div class="m_2824680176108927616yiv6674687900gmail_default" style="font-size:small">I just plotted every lat/lon point that you had, which is what I assume is what you used to create the lightning marker plot. Is there something more you need to do with this particular plot?</div><div class="m_2824680176108927616yiv6674687900gmail_default" style="font-size:small"><br clear="none"></div><div class="m_2824680176108927616yiv6674687900gmail_default" style="font-size:small">As for the contour plot with the labelbar, I&#39;m assuming this is the reflectivity plot, but again, what is the &quot;non-zero data of LIS&quot;? Is LIS one of the columns of data in your ASCII file?</div><div class="m_2824680176108927616yiv6674687900gmail_default" style="font-size:small"><br clear="none"></div><div class="m_2824680176108927616yiv6674687900gmail_default" style="font-size:small">You need to be more specific about what you need.</div><div class="m_2824680176108927616yiv6674687900gmail_default" style="font-size:small"><br clear="none"></div><div class="m_2824680176108927616yiv6674687900gmail_default" style="font-size:small">--Mary</div><div class="m_2824680176108927616yiv6674687900gmail_default" style="font-size:small"><br clear="none"></div></span></div><div class="m_2824680176108927616yiv6674687900yqt6093166415" id="m_2824680176108927616yiv6674687900yqt22219"><div class="m_2824680176108927616yiv6674687900gmail_extra"><br clear="none"><div class="m_2824680176108927616yiv6674687900gmail_quote"><span class="">On Wed, May 3, 2017 at 11:06 PM, Geeta Geeta <span dir="ltr">&lt;<a rel="nofollow" shape="rect" href="mailto:geetag54@yahoo.com" target="_blank">geetag54@yahoo.com</a>&gt;</span> wrote:<br clear="none"></span><blockquote class="m_2824680176108927616yiv6674687900gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:13px"><span class=""><div id="m_2824680176108927616yiv6674687900m_-7739091494909923904yui_3_16_0_ym19_1_1493792079122_183193"><span id="m_2824680176108927616yiv6674687900m_-7739091494909923904yui_3_16_0_ym19_1_1493792079122_183228">Thanks Mary and Dave. </span></div><div dir="ltr" id="m_2824680176108927616yiv6674687900m_-7739091494909923904yui_3_16_0_ym19_1_1493792079122_183193"><span id="m_2824680176108927616yiv6674687900m_-7739091494909923904yui_3_16_0_ym19_1_1493792079122_185059">these files are not avaible in netcdf.  Mary&#39;s script is plotting it when input file is txt. </span></div><div dir="ltr" id="m_2824680176108927616yiv6674687900m_-7739091494909923904yui_3_16_0_ym19_1_1493792079122_183193">I have to try that HDF4-&gt;HDF5 tool. </div><div dir="ltr" id="m_2824680176108927616yiv6674687900m_-7739091494909923904yui_3_16_0_ym19_1_1493792079122_183193"><br clear="none"></div><div dir="ltr" id="m_2824680176108927616yiv6674687900m_-7739091494909923904yui_3_16_0_ym19_1_1493792079122_183193">Pls tell me when u upload the script for it&#39;s conversion to H5. </div><div dir="ltr" id="m_2824680176108927616yiv6674687900m_-7739091494909923904yui_3_16_0_ym19_1_1493792079122_183193"><br clear="none"></div><div dir="ltr" id="m_2824680176108927616yiv6674687900m_-7739091494909923904yui_3_16_0_ym19_1_1493792079122_183193">I actually have to extract 2A25 reflectivity data depending on non-zero data of LIS. I am attaching the Figures. </div><div dir="ltr" id="m_2824680176108927616yiv6674687900m_-7739091494909923904yui_3_16_0_ym19_1_1493792079122_183193"><br clear="none"></div><div dir="ltr" id="m_2824680176108927616yiv6674687900m_-7739091494909923904yui_3_16_0_ym19_1_1493792079122_183193">I dont know how to do using the txt file. </div><div dir="ltr" id="m_2824680176108927616yiv6674687900m_-7739091494909923904yui_3_16_0_ym19_1_1493792079122_183193"><br clear="none"></div><div dir="ltr" id="m_2824680176108927616yiv6674687900m_-7739091494909923904yui_3_16_0_ym19_1_1493792079122_183193">thanks</div><span class="m_2824680176108927616yiv6674687900HOEnZb"><font color="#888888"></font></span><div></div><div id="m_2824680176108927616yiv6674687900m_-7739091494909923904yui_3_16_0_ym19_1_1493792079122_183192"> </div><div class="m_2824680176108927616yiv6674687900m_-7739091494909923904signature" id="m_2824680176108927616yiv6674687900m_-7739091494909923904yui_3_16_0_ym19_1_1493792079122_183191">Geeta.</div></span><div><div class="m_2824680176108927616yiv6674687900h5"> <div class="m_2824680176108927616yiv6674687900m_-7739091494909923904qtdSeparateBR"><br clear="none"><br clear="none"></div><div class="m_2824680176108927616yiv6674687900m_-7739091494909923904yahoo_quoted" style="display:block"> <div style="font-family:Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:13px"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif;font-size:16px"><span class=""> <div dir="ltr"><font size="2" face="Arial"> On Thursday, 4 May 2017 12:22 AM, David Brown &lt;<a rel="nofollow" shape="rect" href="mailto:dbrown@ucar.edu" target="_blank">dbrown@ucar.edu</a>&gt; wrote:<br clear="none"></font></div>  <br clear="none"><br clear="none"> </span><div class="m_2824680176108927616yiv6674687900m_-7739091494909923904y_msg_container"><div dir="ltr"><span class="">Hi Geeta,<br clear="none"><br clear="none">As Mary says, NCL does not currently support the Vdata type in HDF4,<br clear="none">but there is a tool called h4toh5 that you can download from the HDF<br clear="none"></span>group site at <a rel="nofollow" shape="rect" href="https://ftp.hdfgroup.org/h4toh5/download.html." target="_blank">https://ftp.hdfgroup.org/ h4toh5/download.html. </a>It was a<div><div class="h5"><br clear="none">little hard to build on my Mac, but eventually I managed. (I would be<br clear="none">happy to fill you in on the details -- although you may be able to use<br clear="none">the binaries if you are working on Linux.)  It will convert HDF4 files<br clear="none">to HDF5. The Vdata type is converted to the HDF5 compound data type,<br clear="none">which NCL is able to interpret.I<br clear="none">I am attaching a print out of the output from ncl_filedump on the<br clear="none">converted test.h5 file. I will also upload test.h5 to the ftp site so<br clear="none">you can try it for yourself.<br clear="none">You should definitely use NCL 6.4.0 to work with this file. Also you<br clear="none">should read the &quot;File I/O Improvements&quot; section of the latest NCL<br clear="none">release notes (<a rel="nofollow" shape="rect" href="http://www.ncl.ucar.edu/current_release.shtml#FileIOImprovements6.4.0" target="_blank">http://www.ncl.ucar.edu/ current_release.shtml# FileIOImprovements6.4.0</a>)<br clear="none">for information on working with groups and compound data in NCL 6.4.0.<br clear="none">Hope this helps.<br clear="none"> -dave<br clear="none"><br clear="none">On Wed, May 3, 2017 at 12:01 PM, Mary Haley &lt;<a rel="nofollow" shape="rect" href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>&gt; wrote:<br clear="none">&gt; Geeta,<br clear="none">&gt;<br clear="none">&gt; This appears to be HDF4 VDATA data, which NCL doesn&#39;t currently support. We<br clear="none">&gt; haven&#39;t received many requests for this, so it has been very low on our list<br clear="none">&gt; of things to add support for.<br clear="none">&gt;<br clear="none">&gt; I added your email to the ticket we have on this (NCL-1195) in case this<br clear="none">&gt; becomes something we need to support.<br clear="none">&gt;<br clear="none">&gt; Meanwhile, have you checked around to see if this data is available in<br clear="none">&gt; NetCDF format instead?<br clear="none">&gt;<br clear="none">&gt; --Mary<br clear="none">&gt;<br clear="none">&gt;<br clear="none">&gt;<br clear="none">&gt;<br clear="none">&gt; On Tue, May 2, 2017 at 5:59 PM, Geeta Geeta &lt;<a rel="nofollow" shape="rect" href="mailto:geetag54@yahoo.com" target="_blank">geetag54@yahoo.com</a>&gt; wrote:<br clear="none">&gt;&gt;<br clear="none">&gt;&gt; dear ncl users.<br clear="none">&gt;&gt; I have lighening data (orbital) which I wish to plot. the image downloaded<br clear="none">&gt;&gt; from web is attached.<br clear="none">&gt;&gt; but when I doenload the datafile, from the following link.<br clear="none">&gt;&gt;<br clear="none">&gt;&gt; <a rel="nofollow" shape="rect" href="https://lightning.nsstc.nasa.gov/lisib/lis1orbit.exe?which=qc&amp;year=2011&amp;day=104&amp;orbit=76394" target="_blank">https://lightning.nsstc.nasa. gov/lisib/lis1orbit.exe?which= qc&amp;year=2011&amp;day=104&amp;orbit= 76394</a><br clear="none">&gt;&gt;<br clear="none"></div></div>&gt;&gt; <a rel="nofollow" shape="rect" href="mailto:aditya@agniilap" target="_blank">aditya@agniilap</a>:~/geeta/ncl/ MYLIS$ ../bin/ncl trmm.lis.ncl<div><div class="h5"><br clear="none">&gt;&gt;  Copyright (C) 1995-2014 - All Rights Reserved<br clear="none">&gt;&gt;  University Corporation for Atmospheric Research<br clear="none">&gt;&gt;  NCAR Command Language Version 6.2.1<br clear="none">&gt;&gt;  The use of this software is governed by a License Agreement.<br clear="none">&gt;&gt;  See <a rel="nofollow" shape="rect" href="http://www.ncl.ucar.edu/" target="_blank">http://www.ncl.ucar.edu/ </a>for more details.<br clear="none">&gt;&gt;<br clear="none">&gt;&gt; Variable: hdf4_file<br clear="none">&gt;&gt; Type: file<br clear="none">&gt;&gt; File path: ./test.HDF<br clear="none">&gt;&gt; Number of global attributes: 0<br clear="none">&gt;&gt; Number of dimensions: 0<br clear="none">&gt;&gt; Number of variables: 0<br clear="none">&gt;&gt; warning:getfilevarnames: test contains no variables readable by NCL<br clear="none">&gt;&gt; (0) missing<br clear="none">&gt;&gt; I get this message.<br clear="none">&gt;&gt;<br clear="none">&gt;&gt; pls help me how to check the data file.<br clear="none">&gt;&gt;<br clear="none">&gt;&gt; Geeta.<br clear="none">&gt;&gt;<br clear="none">&gt;&gt; ______________________________ _________________<br clear="none">&gt;&gt; ncl-talk mailing list<br clear="none">&gt;&gt; <a rel="nofollow" shape="rect" href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br clear="none">&gt;&gt; List instructions, subscriber options, unsubscribe:<br clear="none">&gt;&gt; <a rel="nofollow" shape="rect" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/ mailman/listinfo/ncl-talk</a><div class="m_2824680176108927616yiv6674687900m_-7739091494909923904yqt4965764296" id="m_2824680176108927616yiv6674687900m_-7739091494909923904yqtfd50986"><br clear="none">&gt;&gt;<br clear="none">&gt;<br clear="none">&gt;<br clear="none">&gt; ______________________________ _________________<br clear="none">&gt; ncl-talk mailing list<br clear="none">&gt; <a rel="nofollow" shape="rect" href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br clear="none">&gt; List instructions, subscriber options, unsubscribe:<br clear="none">&gt; <a rel="nofollow" shape="rect" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/ mailman/listinfo/ncl-talk</a><br clear="none">&gt;<br clear="none"></div></div></div></div><br clear="none"><br clear="none"></div>  </div> </div>  </div></div></div></div></div></blockquote></div><br clear="none"></div></div></div></div><br><br></div>  </div> </div>  </div></div></div></blockquote></div><br></div>