<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 <dave.allured@noaa.gov> 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. Try the attached script. 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 <<a rel="nofollow" shape="rect" ymailto="mailto:dave.allured@noaa.gov" target="_blank" href="mailto:dave.allured@noaa.gov">dave.allured@noaa.gov</a>> wrote:<br clear="none">
><br clear="none">> Zilore,<br clear="none">><br clear="none">> Please look at the first example on the Station Data example page:<br clear="none">> <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">
><br clear="none">> 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.<br clear="none">
><br clear="none">> Will this example meet your needs? My apologies if this was already discussed previously.<br clear="none">><br clear="none">> --Dave<br clear="none">><br clear="none">><br clear="none">> On Sat, Jul 26, 2014 at 4:40 PM, zilore mumba <<a rel="nofollow" shape="rect" ymailto="mailto:zmumba@yahoo.com" target="_blank" href="mailto:zmumba@yahoo.com">zmumba@yahoo.com</a>> wrote:<br clear="none">
>><br clear="none">>> 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">>> My data is below (id, long., lat., rainfall).<br clear="none">>> 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<br clear="none">>> 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">
>> The question is: Is it possible to do what I want to do in ncl?<br clear="none">>> 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">
>> 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">>> Advice will be appreciated.<br clear="none">>><br clear="none">
>> 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">>> <br clear="none">>> <br clear="none">>> <br clear="none">>> <br clear="none">>> <br clear="none">>> <br clear="none">>> Natgrid Examples<br clear="none">>> 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">
>> View on <a rel="nofollow" shape="rect" target="_blank" href="http://w3.pppl.gov/">w3.pppl.gov</a><br clear="none">>> Preview by Yahoo<br clear="none"><br clear="none"></div></div></div></div><br><br></div> </div> </div> </div> </div></body></html>