<div dir="ltr">If the collect and collect2gr() functions don't give you the result you want (I suspect they will not) you might have to use Fortran or some other programming language to create a gridded field using a Cressman/Barnes or some other scheme (even bilinear, bicubic, or inverse distance weighted interpolation schemes could work, too).<br>
<br>Jeff Duda<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 24, 2014 at 2:31 PM, Zilore Mumba <span dir="ltr"><<a href="mailto:zmumba@gmail.com" target="_blank">zmumba@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div>Dear Grads Users,<br></div>I have station rainfall data which I want to draw contours. I have searched previous posts on regridding data to a regular grid, but am not sure if the suggested solutions are relevant to my case, or whether what am trying to do is possible. When I write the data in binary as longitude, latitude, value the display is very strange. I can write it as station values and display as in the file attached.<br>
</div>What I want to be able to do is to interpolate between stations and draw contours.<br></div>My data looks as follows:<br>01 28.92 -2.47 286.5<br>02 29.02 -2.68 168.8<br>03 29.25 -1.67 243.4<br>04 29.42 -2.07 204.9<br>
05 29.55 -1.58 286.9<br>06 29.57 -2.48 230.<br>07 29.6 -1.5 177.5<br>08 29.72 -2.18 290.<br>09 30.05 -1.6 206.5<br>10 30.13 -1.97 178.1<br>11 30.5 -2.15 156.7<br></div>The longitudes are sorted from smallest (western most) to largest, but obviously it is not possible to sort latitudes.<br>
</div>Below is the ctl I wrote to display the data written as lon, lat value (without the id number)<br>DSET means.grd <br>TITLE Sample Data Set <br>UNDEF -9.99E33 <br>XDEF 11 LINEAR 28.9 .2 <br>YDEF 11 LINEAR -2.6 .1 <br>
ZDEF 1 LINEAR 1 1 <br>TDEF 1 LINEAR 1JAN2000 1DY <br>VARS 1 <br>r 0 99 rainfall<br>ENDVARS<br><br></div>Is it possible to do what I want to do?<br></div>Help will be appreciated<span class="HOEnZb"><font color="#888888"><br>
</font></span></div><span class="HOEnZb"><font color="#888888">Zilore<br></font></span></div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Jeff Duda<br>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>Center for Analysis and Prediction of Storms<br>
</div>