<div dir="ltr">Thanks. Eventhough the script after modification is working, the output file is having some endian problem or the output figure is erroneous. The modified script and ctl file is as follows.<div><br></div><div>*********************************************************************<br><div><br></div><div><div>'reinit'</div><div>'sdfopen G:/Sample_MT/samp/<a href="http://uwnd.2006.nc">uwnd.2006.nc</a>'</div><div>prompt 'key in filename'</div><div>pull fname</div><div>'set fwrite 'fname</div><div>yy=1</div><div>while(yy<=73)</div><div>xx=1</div><div>while(xx<=144)</div><div>'set x 'xx</div><div>'set y 'yy</div><div>tm=1</div><div>while(tm<=7)<br></div><div> 'set t 'tm</div><div>prl=1</div><div>while(prl<=8)</div><div>'set t 'tm</div><div>'set z 'prl</div><div>'set gxout fwrite'</div><div>'d uwnd'</div><div>prl=prl+1</div><div> endwhile</div><div> tm=tm+1</div><div> endwhile</div><div> xx=xx+1</div><div> endwhile</div><div> yy=yy+1</div><div> endwhile<br></div><div>'disable fwrite'</div><div><br></div></div><div><br></div><div><br></div><div><div>dset ^U.grd</div><div>undef -999.000000</div><div>xdef 144 linear 0.0 2.5</div><div>ydef 73 linear -90.0 2.5</div><div>zdef 8 levels 1000 925 850 700 600 500 400 300 </div><div>tdef 7 linear 00:00Z23jun2006 24hr</div><div>vars 1</div><div>u 0 99 mean Daily qu [kg/s]</div><div>endvars</div><div><br></div></div><div><br></div><div><br></div><div><br></div></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><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>
<br><div class="gmail_quote">On Tue, Apr 21, 2015 at 7:49 PM, Madhu Latha <span dir="ltr"><<a href="mailto:madhulatha11@gmail.com" target="_blank">madhulatha11@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>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"><div><div class="h5">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></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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: <a href="tel:09496026547" value="+919496026547" target="_blank">09496026547</a></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></div></div>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">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><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br><div><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>
</font></span></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></div>