<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>Thank you very much Dave. I actually saw this ncl resource but somehow I did not try it. I think it will serve my purpose. When I try the example it runs ok. Now I have to adapt it to my data and geographical area.</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>The thing is my mind was fixed on regridding in ncl, writing to binary and then contouring in grads, with which am more familiar. I was more familiar with ncarg in the 90's when it was more FORTRAN-based, but ncl is so rich in resources, I struggle to use it.</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 1:24 AM, Dave Allured - NOAA Affiliate <dave.allured@noaa.gov> wrote:<br> </font> </div> <br><br> <div class="y_msg_container"><div id="yiv6034203436"><div><div dir="ltr">Zilore,<div><br clear="none"></div><div>Please look at the first example on the Station Data example page:</div><div><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">
</div><div><br clear="none"></div><div>You said that you wanted to plot contours. This simple example plots contours WITHOUT first putting data on a regular grid. It uses a triangular mesh plotting technique. For irregular coordinates, this technique will actually make a more accurate contour map than one made from a regular grid.</div>
<div><br clear="none"></div><div>Will this example meet your needs? My apologies if this was already discussed previously.</div><div><br clear="none"></div><div>--Dave</div></div><div class="yiv6034203436gmail_extra"><br clear="none"><br clear="none"><div class="yiv6034203436gmail_quote">On Sat, Jul 26, 2014 at 4:40 PM, zilore mumba <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:zmumba@yahoo.com" target="_blank" href="mailto:zmumba@yahoo.com">zmumba@yahoo.com</a>></span> wrote:<br clear="none">
<blockquote class="yiv6034203436gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv6034203436yqt5663661980" id="yiv6034203436yqt47053"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt;">
<div>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>My data is below (id, long., lat., rainfall).</div><div>01 28.92 -2.47 286.5<br clear="none">
02 29.02 -2.68 168.8<br clear="none">03 29.25 -1.67 243.4<br clear="none">04 29.42 -2.07 204.9<br clear="none">05 29.55 -1.58 286.9<br clear="none">06 29.57 -2.48 230.<br clear="none">07 29.6 -1.5 177.5<br clear="none">08 29.72 -2.18 290.<br clear="none">09 30.05 -1.6 206.5<br clear="none">10 30.13 -1.97 178.1<br clear="none">
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;">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;">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;">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;">
2. I have try the Fortran single precision linear interpolation at <a rel="nofollow" shape="rect" target="_blank" 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;">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;">
<br clear="none"></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;">ncargf77 natgrid.f<br clear="none">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">
/usr/bin/ld: cannot find -lX11<br clear="none">/usr/bin/ld: cannot find -lXext<br clear="none">/usr/bin/ld: cannot find -lcairo<br clear="none">/usr/bin/ld: cannot find -lfontconfig<br clear="none">/usr/bin/ld: cannot find -lpixman-1<br clear="none">/usr/bin/ld: cannot find -lfreetype<br clear="none">
/usr/bin/ld: cannot find -lexpat<br clear="none">/usr/bin/ld: cannot find -liconv<br clear="none">/usr/bin/ld: cannot find -lXrender<br clear="none">/usr/bin/ld: cannot find -lbz2<br clear="none">collect2: error: ld returned 1 exit status<br clear="none"><br clear="none"></div><div style="width:450px;font-family:'Georgia', 'Times', 'Times New Roman', 'serif';margin-top:5px;margin-bottom:5px;">
<table style="width:450px;height:auto;display:block;" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td colspan="7" rowspan="1" style="height:1px;background-color:#e5e5e5;font-size:1px;border-collapse:collapse;"><div style="min-height:1px;background-color:#e5e5e5;font-size:1px;line-height:0px;">
</div></td></tr><tr><td colspan="1" rowspan="5" style="width:1px;background-color:#e5e5e5;font-size:1pt;border-collapse:collapse;"><div style="width:1px;background-color:#e5e5e5;font-size:1pt;"> </div></td><td colspan="1" rowspan="5" style="width:14px;background-color:#ffffff;font-size:0pt;border-collapse:collapse;">
<div style="width:14px;background-color:#ffffff;font-size:14pt;"> </div></td><td colspan="2" rowspan="1" style="height:6px;background-color:#ffffff;font-size:0pt;border-collapse:collapse;"><div style="min-height:6px;background-color:#ffffff;font-size:6pt;">
</div></td><td colspan="1" rowspan="5" style="width:20px;background-color:#ffffff;font-size:0pt;border-collapse:collapse;"><div style="width:20px;background-color:#ffffff;font-size:20pt;"> </div></td><td colspan="1" rowspan="5" style="width:1px;background-color:#e5e5e5;font-size:1pt;border-collapse:collapse;" width="1">
<div style="width:1px;background-color:#e5e5e5;font-size:1pt;"> </div></td></tr><tr><td colspan="2" rowspan="1" style="width:100%;vertical-align:middle;font-family:'Georgia', 'Times', 'Times New Roman', 'serif';">
<div style="line-height:16.5px;background-color:#ffffff;width:414px;"><div style="word-wrap:break-word;"><span></span><span></span><a rel="nofollow" shape="rect" target="_blank" href="http://w3.pppl.gov/ngdoc/ng/ngmath/natgrid/examples.html" style="text-decoration:none!important;color:#000000!important;line-height:100%;font-size:18px;display:block;"><span 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;">
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><td colspan="2" rowspan="1" style="height:6px;background-color:#ffffff;font-size:0pt;border-collapse:collapse;"><div style="min-height:6px;background-color:#ffffff;font-size:6pt;">
</div></td></tr><tr><td colspan="1" rowspan="1" style="vertical-align:middle;font-family:'Arial', 'Helvetica Neue', 'Helvetica', 'sans-serif';"><div style="font-size:0pt;"><a rel="nofollow" shape="rect" target="_blank" href="http://w3.pppl.gov/ngdoc/ng/ngmath/natgrid/examples.html" style="color:black;text-decoration:none!important;"><span style="display:inline-block;line-height:11px;max-width:314px;min-width:254px;overflow:hidden;max-height:13px;"><span style="vertical-align:middle;font-size:9px;line-height:11px;color:#999999;">View on <span style="font-weight:bold;">w3.pppl.gov</span></span></span></a></div>
</td><td colspan="1" rowspan="1" style="vertical-align:middle;width:100px;font-family:'Arial', 'Helvetica Neue', 'Helvetica', 'sans-serif';"><div style="max-width:100px;min-width:80px;overflow:hidden;text-align:right;line-height:11px;max-height:13px;font-size:0pt;">
<span style="vertical-align:middle;font-size:9px;line-height:11px;color:#999999;">Preview by Yahoo</span></div></td></tr><tr><td colspan="2" rowspan="1" style="height:9px;background-color:#ffffff;font-size:0pt;border-collapse:collapse;">
<div style="min-height:9px;background-color:#ffffff;font-size:9pt;"></div></td></tr><tr><td colspan="7" rowspan="1" style="height:1px;background-color:#e5e5e5;font-size:1px;border-collapse:collapse;"><div style="min-height:1px;background-color:#e5e5e5;font-size:1px;line-height:0px;">
</div></td></tr></tbody></table></div><div><br clear="none"></div></div></div></div><br clear="none">_______________________________________________<br clear="none">
ncl-talk mailing list<br clear="none">
List instructions, subscriber options, unsubscribe:<br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br clear="none">
<br clear="none"></blockquote></div><br clear="none"></div></div></div><br><br></div> </div> </div> </div> </div></body></html>