<div>Dear All ,</div>
<div>&nbsp;</div>
<div>I am also trying to convert&nbsp;my station data into gridded data.</div>
<div>For this I have&nbsp;the stations lat/lon&nbsp;,time , and variable information but all this is in txt file. For using any&nbsp; functions which deals with&nbsp;this kind of conversion in Grads like</div>
<div><code>oacres (<i>gexpr, sexpr)</i></code></div>
<div><code></code><code>oabin (<i>gexpr, sexpr </i>)</code> </div>
<div>&nbsp;</div>
<div>I first need to make this .txt file readable for Grads. Is any one have information about this kind of problem</div>
<div><br>&nbsp;</div>
<div><span class="gmail_quote">On 11/23/05, <b class="gmail_sendername">Qiong Zheng</b> &lt;<a href="mailto:qiongzh@gmail.com">qiongzh@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Hi, </div>
<div>I have used &quot;oacres&quot;, it works very well. One thing you can try is, open the grid file (<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://cal.controla.1dom.nc/" target="_blank">cal.controla.1dom.nc
</a>) firstly, then open the station file (a.ctl) (don't forget to change the OACRES command!). </div>
<div>Good Luck</div><span class="sg">
<div>Qiong<br><br>&nbsp;</div></span>
<div><span class="e" id="q_107b9b41da00075b_2">
<div><span class="gmail_quote">On 11/21/05, <b class="gmail_sendername">Hui Du</b> &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:huidu@ucdavis.edu" target="_blank">huidu@ucdavis.edu</a>&gt; wrote:
</span> 
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hello, grads users<br>&nbsp; I am trying to convert the station data to grid data using the function 'oacres'.<br>
&nbsp; I created a station file for one variable. <br>&nbsp; I also successfully got the&nbsp; map file using 'stnmap'<br>&nbsp; Then I opened two files to try to get the grid data, the following are my command and error information.<br>************************************************************************************* 
<br>&nbsp;ga-&gt; open a.ctl<br>Scanning description file:&nbsp; a.ctl<br>Data file controla.dat is open as file 1<br>LON set to 0 360<br>LAT set to -90 90<br>LEV set to 500 500<br>Time values set: 1995:8:1:0 1995:8:1:0<br>ga-&gt; sdfopen ../cal.controla.1dom.nc 
<br>Scanning self-describing file:&nbsp; ../cal.controla.1dom.nc<br>SDF file ../cal.controla.1dom.nc is open as file 2<br>ga-&gt; set lon 230 250<br>LON set to 230 250<br>ga-&gt; set lat 30 45<br>LAT set to 30 45<br>ga-&gt; set t 100 
<br>Time values set: 1995:8:25:18 1995:8:25:18<br>ga-&gt; d oacres(t2.2,t2)<br><font color="#ff0000">Segmentation fault (core dumped)</font><br>*******************************************************************<br>then grads broke, I have no idea what made this happen. 
<br><br>For the a.clt, its script is the following<br>***********************************************<br>dset controla.dat<br>title t2<br>dtype station<br>stnmap t2.map<br>undef -999<br>tdef 1697 linear 00z1aug1995 6hr<br>
vars 1<br>t2 0 99 t2 data<br>endvars<br>*****************************************************<br>I don't think it is a good idea to convert my station data because with only one surface variable t2, the size of station data is about 580M. 
<br><br>Has anyone have any program to do this outside grads? Or can you tell me where the source code of the function 'oacres' is<br><br>Thanks a lot <br><br></blockquote></div><br></span></div></blockquote></div><br><br clear="all">
<br>-- <br>Siraj Ul Islam<br>1: Research Fellow (Climate Section)<br>Global Change Impact Studies Centre<br>First Floor Saudi Pak tower <br>Blue Area Islamabad Pakistan<br>Ph :&nbsp;&nbsp; 92-51-9219785<br>Fax : 92-51-9219787<br><br>
2: Mphil Scholar <br>Computational Physics and Simulation Group<br>Department of Physics<br>Quaid e Azam University <br>Islamabad.<br><br><br><br>