It looks like the problem is with your data, not grads, and you actually don't have defined values in that particular time period and region. Look at different times and places to convince yourself data does exist somewhere, and if not, go back to the MM5 and see what's wrong.<br><br><b><i>Wajeeha Shafeeq <wajeeha.shafeeq@GCISC.ORG.PK></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta content="MSHTML 6.00.2900.2873" name="GENERATOR"> <style></style> <div><font face="Arial" size="2"> <div><span style="font-size: 10pt; font-family: Arial;">Hi,<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">I am using MM5 output data. I have to write a file on some particular lat/lon. For this I am using the following script.<o:p></o:p></span></div> <div><span
style="font-size: 10pt; font-family: Arial;">#####################################################<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">'open mmoutjan05-3-01.ctl'<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">'set lon 70 80'<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">'set lat 32 38'<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">'set gxout fwrite'<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">'set fwrite humidity.dat'<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">t=1<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">while(t<=40)<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">'set t 't<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">'d
const(t,-9999,-u)'<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">t=t+1<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">endwhile<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">'disable fwrite'<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">reinit<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">####################################################<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">The ctl is as follows:<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">#####################################################<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">dset ^humidity.dat<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">byteswapped<o:p></o:p></span></div> <div><span
style="font-size: 10pt; font-family: Arial;">title MM5 data<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">undef -9999.<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">pdef 102 102 lcc 26.83 66.62 1.00 1.00 30.00 60.00 73.00 12000. 12000.<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">xdef 163 linear 70 0.0541<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">ydef 105 linear 32 0.0541<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">zdef 23 levels <o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">0.99500<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">0.98500<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">0.97000<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family:
Arial;">0.94500<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">0.91000<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">0.87000<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">0.82500<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">0.77500<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">0.72500<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">0.67500<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">0.62500<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">0.57500<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">0.52500<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">0.47500<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family:
Arial;">0.42500<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">0.37500<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">0.32500<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">0.27500<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">0.22500<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">0.17500<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">0.12500<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">0.07500<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">0.02500<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">tdef 40 linear 06:00Z01JAN2005 360MN<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">vars 1 <o:p></o:p></span></div> <div><span style="font-size: 10pt;
font-family: Arial;">rh 23 99 rel humidity (%) <o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">endvars<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">###########################################################<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">The problem is when I open the new file and displays its variable it give the following error<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">"Contouring: nan to nan interval inf"<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">I have made this ctl file by changing the xdef and ydef values of the original MM5 ctl file.<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">Regards,<o:p></o:p></span></div> <div><span style="font-size: 10pt; font-family: Arial;">Wajeeha
Shafeeq<o:p></o:p></span></div></font></div></blockquote><br><BR><BR>Brian Vant-Hull<br>301-646-1149<p> 
<hr size=1>Cheap Talk? <a href="http://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com">Check out</a> Yahoo! Messenger's low PC-to-Phone call rates.