<div dir="ltr"><div><div><div><div>hi<br></div>it will work<br></div>you have to keep x,y also in while loop<br></div>for example<br><br>yy=117<br>while(yy<=119)<br>xx=164<br>while(xx<=166)<br>'set x 'xx<br>'set y 'yy<br>tm=1<br><br>while(tm<=76)<br> 'set t 'tm<br>prl=2<br>while(prl<=20)<br>'set t 'tm<br>'set z 'prl<br>'d u'<br></div>'save here with file name'<br><div>prl=prl+1<br> endwhile<br> tm=tm+1<br> endwhile<br> xx=xx+1<br> endwhile<br> yy=yy+1<br><br></div><div>you try this,it may work.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 21, 2015 at 5:45 PM, Jayakrishnan P.R <span dir="ltr"><<a href="mailto:prjayakrishnan@gmail.com" target="_blank">prjayakrishnan@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>Hello,</div><div> I am in need of converting NCEP wind data to gridded format extracted over a latitude longitude domain. I wrote a script for this thing like the following.</div><div><br></div><div><div>'reinit'</div><div>'sdfopen G:/Sample_MT/samp/<a href="http://uwnd.2006.nc" target="_blank">uwnd.2006.nc</a>'</div><div>'set x 1 144'</div><div>'set y 1 73'</div><div>prompt 'key in filename'</div><div>pull fname</div><div>'set fwrite 'fname</div><div>tt=1</div><div>while (tt<=365)</div><div>'set t 'tt</div><div>zz=1</div><div>while (zz<=17)</div><div>'set z 'zz</div><div>'set gxout fwrite'</div><div>'d uwnd'</div><div>zz=zz+1</div><div>endwhile</div><div>tt=tt+1</div><div>endwhile</div><div><br></div></div><div><br></div><div>But eventhough the script is working, it extracts the data for a single level only. Do grads operate if we give dimensions greater than 2?. I mean, latitude is varying, longitude is varying, Time is varying, Level is varying for output..?</div><div><br></div><div><br></div><br clear="all"><div><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Sincerely<br>***********************************************<br>Jayakrishnan.P.R<br><div>Project Scientist-C<br>National Centre for Medium Range Weather Forecasting<br>Earth System Science Organisation<br>Ministry of Earth Sciences<br>A-50, Sector 62, NOIDA -201 309, INDIA<br>Mob: 09496026547</div><div>Alternate Email: <a href="mailto:jkrishna@ncmrwf.gov.in" target="_blank">jkrishna@ncmrwf.gov.in</a><br><br>***********************************************</div></div></div></div></div></div></div></div>
</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><div class="gmail_signature"><div dir="ltr"><div><b><span style="color:rgb(153,0,255)">With Regards<br>Madhulatha Akkisetti<br></span></b></div><b><span style="color:rgb(153,0,255)">Project Scientist - C<br></span></b><div><b><span style="color:rgb(153,0,255)"><font face="Arial, Helvetica">National Centre for Medium Range Weather Forecasting (NCMRWF) <br>
Ministry of Earth Sciences (MoES) <br>
</font></span></b></div><div><b><span style="color:rgb(153,0,255)"><font face="Arial, Helvetica">Noida, UP</font></span><br></b></div></div></div>
</div></div>