<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div style="" class="">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.</div><div style="" class="">My data is below (id, long., lat., rainfall).</div><div style="" class="">01&nbsp; 28.92&nbsp; -2.47&nbsp; 286.5<br style="" class="">02&nbsp; 29.02&nbsp; -2.68&nbsp; 168.8<br style="" class="">03&nbsp; 29.25&nbsp; -1.67&nbsp; 243.4<br style="" class="">04&nbsp; 29.42&nbsp; -2.07&nbsp; 204.9<br style="" class="">05&nbsp; 29.55&nbsp; -1.58&nbsp; 286.9<br style="" class="">06&nbsp; 29.57&nbsp; -2.48&nbsp; 230.<br style="" class="">07&nbsp; 29.6&nbsp;&nbsp; -1.5&nbsp;&nbsp; 177.5<br style="" class="">08&nbsp; 29.72&nbsp; -2.18&nbsp; 290.<br style="" class="">09&nbsp; 30.05&nbsp; -1.6&nbsp;&nbsp; 206.5<br style=""
 class="">10&nbsp; 30.13&nbsp; -1.97&nbsp; 178.1<br style="" class="">11&nbsp; 30.5&nbsp;&nbsp; -2.15&nbsp; 156.7</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;" class="">My sincere apologies because this is a question I already asked more than 6 months ago and I still have not found a solution.</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;" class="">The question is: Is it possible to do what I want to do in ncl?</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;" class="">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).</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;" class="">2. I have try the Fortran single precision linear interpolation at <a style="" class="" href="http://w3.pppl.gov/ngdoc/ng/ngmath/natgrid/examples.html">Natgrid Examples</a> and run the fortran program with ncargf77 filename I get the errors below:</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;" class="">Advice will be appreciated.</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;" class=""><br></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;" class="">ncargf77 natgrid.f<br style="" class="">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 style="" class="">/usr/bin/ld: cannot find -lX11<br style="" class="">/usr/bin/ld: cannot find -lXext<br style="" class="">/usr/bin/ld: cannot find -lcairo<br style="" class="">/usr/bin/ld: cannot find -lfontconfig<br style="" class="">/usr/bin/ld: cannot find -lpixman-1<br style="" class="">/usr/bin/ld: cannot find -lfreetype<br style="" class="">/usr/bin/ld: cannot find -lexpat<br style="" class="">/usr/bin/ld: cannot find -liconv<br style=""
 class="">/usr/bin/ld: cannot find -lXrender<br style="" class="">/usr/bin/ld: cannot find -lbz2<br style="" class="">collect2: error: ld returned 1 exit status<br style="" class=""><br style="" class=""></div><div style="width:450px; font-family: 'Georgia', 'Times', 'Times New Roman', 'serif';margin-top:5px; margin-bottom: 5px;" id="enhancrCard_0" class="" contenteditable="false"><table class="" style="width:450px; height:auto; position: relative; display: block;" cellpadding="0" cellspacing="0" border="0"><tbody style="" class=""><tr style="" class=""><td class="" colspan="7" style="height: 1px; background-color: #e5e5e5; font-size: 1px; border-collapse: collapse;"><div class="" style="height: 1px; background-color: #e5e5e5; font-size: 1px; line-height:0px;">&nbsp;</div></td></tr><tr style="" class=""><td rowspan="5" class="" style="width: 1px; background-color: #e5e5e5; font-size: 1pt; border-collapse: collapse;"><div class="" style="width: 1px;
 background-color: #e5e5e5; font-size: 1pt;">&nbsp;</div></td><td rowspan="5" class="" style="width: 14px; background-color: #ffffff; font-size: 0pt; border-collapse: collapse;"><div class="" style="width: 14px; background-color: #ffffff; font-size: 14pt;">&nbsp;</div></td><td colspan="2" class="" style="height: 6px; background-color: #ffffff; font-size: 0pt; border-collapse: collapse;"><div class="" style="height: 6px; background-color: #ffffff; font-size: 6pt;">&nbsp;</div></td><td rowspan="5" class="" style="width: 20px; background-color: #ffffff; font-size: 0pt; border-collapse: collapse;"><div class="" style="width: 20px; background-color: #ffffff; font-size: 20pt;">&nbsp;</div></td><td class="" rowspan="5" style="width: 1px; background-color: #e5e5e5; font-size: 1pt; border-collapse: collapse;" width="1"><div class="" style="width: 1px; background-color: #e5e5e5; font-size: 1pt;">&nbsp;</div></td></tr><tr style="" class=""><td class="" colspan="2"
 style="width: 100%; vertical-align: middle; font-family: 'Georgia', 'Times', 'Times New Roman', 'serif';"><div class="" style="line-height:16.5px; background-color: #ffffff;  width: 414px;"><div class="" style="word-wrap: break-word; word-break: break-all;"><span style="" class=""></span><span style="" class=""></span><a href="http://w3.pppl.gov/ngdoc/ng/ngmath/natgrid/examples.html" class="" style="text-decoration: none !important; color: #000000 !important; line-height: 100%; font-size: 18px; display: block;"><span class="" style="margin: 0; font-weight: normal;margin-bottom: 3px; font-size: 18px; line-height: 21px; max-height: 43px; color: #000000; overflow: hidden !important; display: inline-block;">Natgrid Examples</span></a><div style="font-size: 13px; line-height: 20px; color: #999999; max-height: 81px; font-family: 'Georgia', 'Times', 'Times New Roman', 'serif';overflow: hidden;" class="">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. </div></div></div></td></tr><tr style="" class=""><td colspan="2" class="" style="height: 6px; background-color: #ffffff; font-size: 0pt; border-collapse: collapse;"><div class="" style="height: 6px; background-color: #ffffff; font-size: 6pt;"></div></td></tr><tr style="" class=""><td class="" style="vertical-align: middle; font-family: 'Arial', 'Helvetica Neue', 'Helvetica', 'sans-serif';"><div class="" style="font-size: 0pt;"><a href="http://w3.pppl.gov/ngdoc/ng/ngmath/natgrid/examples.html" class="" style="color: black; text-decoration: none !important;cursor:pointer !important;" target="_blank"><span class="" style="display: inline-block; line-height: 11px; max-width: 314px; min-width: 254px; overflow: hidden; max-height: 13px; word-break: break-all;"><span class="" style="vertical-align:middle; font-size: 9px; line-height: 11px; color: #999999; -moz-text-size-adjust: none; -ms-text-size-adjust: none;
 -webkit-text-size-adjust:none; text-size-adjust:none;">View on <span style="font-weight: bold" class="">w3.pppl.gov</span></span></span></a></div></td><td class="" style="vertical-align: middle; width: 100px; font-family: 'Arial', 'Helvetica Neue', 'Helvetica', 'sans-serif';"><div class="" style="max-width: 100px; min-width: 80px; overflow: hidden; text-align: right; line-height: 11px; max-height: 13px; font-size: 0pt;"><span class="" style="vertical-align:middle; font-size: 9px; line-height: 11px; color: #999999; -moz-text-size-adjust: none; -ms-text-size-adjust: none; -webkit-text-size-adjust:none; text-size-adjust:none;">Preview by Yahoo</span></div></td></tr><tr style="" class=""><td colspan="2" class="" style="height: 9px; background-color: #ffffff; font-size: 0pt; border-collapse: collapse;"><div class="" style="height: 9px; background-color: #ffffff; font-size: 9pt;"></div></td></tr><tr style="" class=""><td class="" colspan="7" style="height:
 1px; background-color: #e5e5e5; font-size: 1px; border-collapse: collapse;"><div class="" style="height: 1px; background-color: #e5e5e5; font-size: 1px; line-height:0px">&nbsp;</div></td></tr></tbody></table></div><div style="" class=""><br style="" class=""></div></div></body></html>