<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 28.92 -2.47 286.5<br style="" class="">02 29.02 -2.68 168.8<br style="" class="">03 29.25 -1.67 243.4<br style="" class="">04 29.42 -2.07 204.9<br style="" class="">05 29.55 -1.58 286.9<br style="" class="">06 29.57 -2.48 230.<br style="" class="">07 29.6 -1.5 177.5<br style="" class="">08 29.72 -2.18 290.<br style="" class="">09 30.05 -1.6 206.5<br style=""
class="">10 30.13 -1.97 178.1<br style="" class="">11 30.5 -2.15 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;"> </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;"> </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;"> </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;"> </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;"> </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;"> </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"> </div></td></tr></tbody></table></div><div style="" class=""><br style="" class=""></div></div></body></html>