<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div><span>Dave,</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span>Once more thanks very much for your effort and time. You have moved me closer to the solution. Please see, in the attachment, the output I get from the script you sent me.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span>I will work with this and see if I can move. I have seen the ESMF gridding examples, they can take me ages to decipher what to do.</span></div> <div class="qtdSeparateBR"><br><br></div><div style="display:
 block;" class="yahoo_quoted"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> On Sunday, July 27, 2014 3:13 AM, Dave Allured - NOAA Affiliate &lt;dave.allured@noaa.gov&gt; wrote:<br> </font> </div>  <br><br> <div class="y_msg_container"><div id="yiv3541878046"><div><div dir="ltr">Zilore,<br clear="none"><br clear="none">Sorry, that example #1 is not set up correctly for your kind of data. &nbsp;Try the attached script. &nbsp;This is another triangular mesh example that does use need extra coordinate arrays.<br clear="none"><br clear="none">If you still want to regrid, then I found that ESMF regridding example works easily with your sample data.<br clear="none">
<br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://www.ncl.ucar.edu/Applications/ESMF.shtml#ex21">http://www.ncl.ucar.edu/Applications/ESMF.shtml#ex21</a><br clear="none"><br clear="none">--Dave<br clear="none"><br clear="none"><div class="yiv3541878046yqt1907037033" id="yiv3541878046yqtfd41161"><br clear="none">On Sat, Jul 26, 2014 at 5:24 PM, Dave Allured - NOAA Affiliate &lt;<a rel="nofollow" shape="rect" ymailto="mailto:dave.allured@noaa.gov" target="_blank" href="mailto:dave.allured@noaa.gov">dave.allured@noaa.gov</a>&gt; wrote:<br clear="none">
&gt;<br clear="none">&gt; Zilore,<br clear="none">&gt;<br clear="none">&gt; Please look at the first example on the Station Data example page:<br clear="none">&gt; <a rel="nofollow" shape="rect" target="_blank" href="http://www.ncl.ucar.edu/Applications/station.shtml">http://www.ncl.ucar.edu/Applications/station.shtml</a><br clear="none">
&gt;<br clear="none">&gt; You said that you wanted to plot contours. &nbsp;This simple example plots contours WITHOUT first putting data on a regular grid. &nbsp;It uses a triangular mesh plotting technique. &nbsp;For irregular coordinates, this technique will actually make a more accurate contour map than one made from a regular grid.<br clear="none">
&gt;<br clear="none">&gt; Will this example meet your needs? &nbsp;My apologies if this was already discussed previously.<br clear="none">&gt;<br clear="none">&gt; --Dave<br clear="none">&gt;<br clear="none">&gt;<br clear="none">&gt; On Sat, Jul 26, 2014 at 4:40 PM, zilore mumba &lt;<a rel="nofollow" shape="rect" ymailto="mailto:zmumba@yahoo.com" target="_blank" href="mailto:zmumba@yahoo.com">zmumba@yahoo.com</a>&gt; wrote:<br clear="none">
&gt;&gt;<br clear="none">&gt;&gt; I have x,y,z data on an irregularly spaced geographical grid, which I want to put on a regular grid to be able to plot contours.<br clear="none">&gt;&gt; My data is below (id, long., lat., rainfall).<br clear="none">&gt;&gt; 01 &nbsp;28.92 &nbsp;-2.47 &nbsp;286.5<br clear="none">
&gt;&gt; 02 &nbsp;29.02 &nbsp;-2.68 &nbsp;168.8<br clear="none">&gt;&gt; 03 &nbsp;29.25 &nbsp;-1.67 &nbsp;243.4<br clear="none">&gt;&gt; 04 &nbsp;29.42 &nbsp;-2.07 &nbsp;204.9<br clear="none">&gt;&gt; 05 &nbsp;29.55 &nbsp;-1.58 &nbsp;286.9<br clear="none">&gt;&gt; 06 &nbsp;29.57 &nbsp;-2.48 &nbsp;230.<br clear="none">&gt;&gt; 07 &nbsp;29.6 &nbsp; -1.5 &nbsp; 177.5<br clear="none">&gt;&gt; 08 &nbsp;29.72 &nbsp;-2.18 &nbsp;290.<br clear="none">
&gt;&gt; 09 &nbsp;30.05 &nbsp;-1.6 &nbsp; 206.5<br clear="none">&gt;&gt; 10 &nbsp;30.13 &nbsp;-1.97 &nbsp;178.1<br clear="none">&gt;&gt; 11 &nbsp;30.5 &nbsp; -2.15 &nbsp;156.7<br clear="none">&gt;&gt; My sincere apologies because this is a question I already asked more than 6 months ago and I still have not found a solution.<br clear="none">
&gt;&gt; The question is: Is it possible to do what I want to do in ncl?<br clear="none">&gt;&gt; 1. I have tried 2dgrid.ncl which seems to but am not able to figure out how to write output to file, and the z values all seem to be above 370 (well above what I have in my file).<br clear="none">
&gt;&gt; 2. I have try the Fortran single precision linear interpolation at Natgrid Examples and run the fortran program with ncargf77 filename I get the errors below:<br clear="none">&gt;&gt; Advice will be appreciated.<br clear="none">&gt;&gt;<br clear="none">
&gt;&gt; ncargf77 natgrid.f<br clear="none">&gt;&gt; gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp -O natgrid.f -L/usr/local/lib -L/usr/X11R6/lib64 -lncarg -lncarg_gks -lncarg_c -lX11 -lXext -lcairo -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -liconv -lXrender -lbz2<br clear="none">
&gt;&gt; /usr/bin/ld: cannot find -lX11<br clear="none">&gt;&gt; /usr/bin/ld: cannot find -lXext<br clear="none">&gt;&gt; /usr/bin/ld: cannot find -lcairo<br clear="none">&gt;&gt; /usr/bin/ld: cannot find -lfontconfig<br clear="none">&gt;&gt; /usr/bin/ld: cannot find -lpixman-1<br clear="none">
&gt;&gt; /usr/bin/ld: cannot find -lfreetype<br clear="none">&gt;&gt; /usr/bin/ld: cannot find -lexpat<br clear="none">&gt;&gt; /usr/bin/ld: cannot find -liconv<br clear="none">&gt;&gt; /usr/bin/ld: cannot find -lXrender<br clear="none">&gt;&gt; /usr/bin/ld: cannot find -lbz2<br clear="none">
&gt;&gt; collect2: error: ld returned 1 exit status<br clear="none">&gt;&gt;<br clear="none">&gt;&gt; &nbsp;<br clear="none">&gt;&gt; &nbsp;<br clear="none">&gt;&gt; &nbsp;<br clear="none">&gt;&gt; &nbsp;<br clear="none">&gt;&gt; &nbsp;<br clear="none">&gt;&gt; &nbsp;<br clear="none">&gt;&gt; Natgrid Examples<br clear="none">&gt;&gt; Natgrid examples Overview This module contains source codes for all of the examples referenced by the other modules in the documentation. Links to all of the example plots are provided.<br clear="none">
&gt;&gt; View on <a rel="nofollow" shape="rect" target="_blank" href="http://w3.pppl.gov/">w3.pppl.gov</a><br clear="none">&gt;&gt; Preview by Yahoo<br clear="none"><br clear="none"></div></div></div></div><br><br></div>  </div> </div>  </div> </div></body></html>