Wendi,<br>You need to run those two define commands at the top of my previous email before attempting to define the xdist and ydist fields.  Also, since I can see your control file information, I can see that dlon is 0.004492369 and dlat is  0.004522556.  So substitute those two values into your expressions for xdist and ydist also.<br>
<br>Jeff<br><br><div class="gmail_quote">On Fri, Feb 1, 2013 at 4:36 AM, wendi harjupa <span dir="ltr">&lt;<a href="mailto:wendiharjupa@gmail.com" target="_blank">wendiharjupa@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear Mr. Jeff<div><br></div><div>I have tried to use the scipt which you suggested,</div><div>But, still I could not do it. Would you help me more...</div><div><br></div><div>here I send my gs file :</div><div><br></div><div>

<div>&#39;reinit&#39;</div><div>&#39;open try2.ctl&#39;</div><div>&#39;set grads off&#39;</div><div>&#39;set mproj latlon&#39;</div><div>&#39;set mpdset hires&#39;</div><div>&#39;set gxout shaded&#39;</div><div>&#39;set grid on&#39;</div>

<div>&#39;set lon 100  101&#39;</div><div>&#39;set lat 0  1&#39;</div><div>&#39;define xdist = [(lon 99.7)/dlon]*[dx/2]&#39;</div><div>&#39;define ydist = [(lat -1.02)/dlat]*[dy/2]&#39;</div><div>&#39;set z 5&#39;</div><div>

&#39;set t 1&#39;</div><div>&#39;d ref&#39;</div><div><br></div><div>Below is my ctl file :</div><div><br></div><div><div>DSET 1013.dat</div><div>TITLE  RADAR</div><div>OPTIONS  TEMPLATE LITTLE_ENDIAN</div><div>UNDEF  -1000</div>

<div>XDEF    321 LINEAR    99.688120996    0.004492369</div><div>YDEF    321 LINEAR    -1.083708891    0.004522556</div><div>ZDEF    39  LINEAR   1.0 0.5</div><div>TDEF    15 LINEAR 13:00Z10apr2004  4mn </div><div>VARS    2</div>

<div>ref 39  99  Reflectivity(dBZ)</div><div>vel 39  99  Doppler Velocity(m/s)</div><div>ENDVARS</div></div><div><br></div><div><br></div><div>Would you check my gs file, is there something that I have to revise??</div><div>

<br></div><div>Thank you very much.</div><div><br></div><div>Best regards,</div><div>wendi</div><div><br></div><div><br></div><br><div class="gmail_quote"><div class="im">On Fri, Feb 1, 2013 at 10:34 AM, Jeff Duda <span dir="ltr">&lt;<a href="mailto:jeffduda319@gmail.com" target="_blank">jeffduda319@gmail.com</a>&gt;</span> wrote:<br>

</div><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">These commands will help.<br><br>&#39;define dx = 6.371e3*cos(lat*(3.14159/180))*cdiff(lon,x)*(3.14159/180)&#39;<br>
&#39;define dy = 6.371e3*cdiff(lat,y)*(3.14159/180))&#39;<br>
<br>They define grid increments in terms of spatial distance rather than geographic distance.  If you&#39;re trying to change the axes and tick marks, you&#39;ll have to define an origin and define your x and y distances based on that.  For instance, if you set your lower left domain corner (latitude 0 and longitude 100), then you can define your coordinate distances using<br>



<br>&#39;define xdist = [(lon-100)/dlon]*[dx/2]&#39;<br>&#39;define ydist = [(lat-0)/dlat]*[dy/2]&#39;<div><br></div><div>I think this should work, but I haven&#39;t tested it myself, so I don&#39;t know.  dlon and dlat are the step values from the XDEF and YDEF lines of the control file, respectively.</div>


<div><br></div><div>Jeff Duda</div><div><br><div class="gmail_quote"><div><div>On Thu, Jan 31, 2013 at 7:02 AM, wendi harjupa <span dir="ltr">&lt;<a href="mailto:wendiharjupa@gmail.com" target="_blank">wendiharjupa@gmail.com</a>&gt;</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>Dear Sir/Madam<div><br></div><div>I need help</div><div>I have problem with grads command,</div>

<div>I am not well understand with command gr2XY,</div>

<div><br></div><div>Actually I want to convert the lon 100  to 101, and lat 0 to 1 to distance (km)</div>
<div>let think that lon 100 is 0 km, and lat 0 is 0 km,</div><div><br></div><div>what command I can use to convert lon and lat to km?</div><div><br></div><div>Thank you very much for your help<br clear="all"><div><br></div>




<div>best regards,</div><span><font color="#888888">-- <br><span style="font-size:16px;font-family:arial,helvetica,sans-serif">-------------</span><br style="font-size:16px;font-family:arial,helvetica,sans-serif">

<span style="font-size:16px;font-family:arial,helvetica,sans-serif">Wendi Harjupa. ST                                            </span><br style="font-size:16px;font-family:arial,helvetica,sans-serif">
<span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Shimane</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">University</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Graduate</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">School of</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Engineering Sciences</span><br style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">




<span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Department of</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Electronic Control</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Systems</span><br style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">




<span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Remote</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Sensing</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Laboratory</span><div>




<span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">s119447</span></div><div><font color="#333333" face="arial, sans-serif" size="3">Cellphone : <a href="tel:%2B81-080-4268-6676" value="+818042686676" target="_blank">+81-080-4268-6676</a></font></div>




<div><font color="#333333" face="arial, sans-serif" size="3">email : <a href="mailto:wendi@rslab.riko.shimane-u.ac.jp" target="_blank">wendi@rslab.riko.shimane-u.ac.jp</a></font></div>
</font></span></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><font color="#888888"><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>


</font></span></div>
<br>_______________________________________________<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></div></div><div><div class="h5"><br><br clear="all"><div><br></div>-- <br><span style="font-size:16px;font-family:arial,helvetica,sans-serif">-------------</span><br style="font-size:16px;font-family:arial,helvetica,sans-serif">

<span style="font-size:16px;font-family:arial,helvetica,sans-serif">Wendi Harjupa. ST                                            </span><br style="font-size:16px;font-family:arial,helvetica,sans-serif">
<span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Shimane</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">University</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Graduate</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">School of</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Engineering Sciences</span><br style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">

<span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Department of</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Electronic Control</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Systems</span><br style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">

<span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Remote</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Sensing</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Laboratory</span><div>

<span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">s119447</span></div><div><font color="#333333" face="arial, sans-serif" size="3">Cellphone : +81-080-4268-6676</font></div>

<div><font color="#333333" face="arial, sans-serif" size="3">email : <a href="mailto:wendi@rslab.riko.shimane-u.ac.jp" target="_blank">wendi@rslab.riko.shimane-u.ac.jp</a></font></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>Jeff Duda<br>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>Center for Analysis and Prediction of Storms<br>