<div dir="ltr"><div><div>Wendi,<br></div>It sounds like you want to draw a plot with geographic coordinates replaced by straight-line/distance coordinates instead. If that is the case, one thing you can try is removing the PDEF line from your control file and resetting your XDEF and YDEF lines to start at 0 (but keep the delta value). That might work. If that doesn&#39;t work, you could also try turning off the map projection in grads (set mproj off) and then using &#39;set xaxis&#39; and &#39;set yaxis&#39; in clever ways to make it look like the map you draw is in terms of linear distance. Good luck.<br><br></div><div>Jeff Duda<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 1, 2016 at 9:32 AM, HARVEY, PHILIP O NH-03 USAF AFMC 412 OSS/OSW <span dir="ltr">&lt;<a href="mailto:philip.harvey.1@us.af.mil" target="_blank">philip.harvey.1@us.af.mil</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">See Ed Williams&#39; Aviation Formulary at <a href="http://williams.best.vwh.net/avform.htm" rel="noreferrer" target="_blank">http://williams.best.vwh.net/<wbr>avform.htm</a> for great circle distance, etc formulas.  The formula you desire is only requires 1 line and can easily be written into a function.<br>
<br>
Phil<br>
<div><div class="h5"><br>
<br>
-----Original Message-----<br>
From: <a href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a> [mailto:<a href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@<wbr>gradsusr.org</a>] On Behalf Of wendi harjupa<br>
Sent: Tuesday, November 01, 2016 2:01 AM<br>
To: GrADS Users Forum &lt;<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>&gt;<br>
Subject: [gradsusr] convert world coordinate distance to real distance (km)<br>
<br>
Dear every one<br>
<br>
I have problem with converting distance in world coordinate to distance,<br>
<br>
I have map with<br>
lon = 135  135.5<br>
lat = 34.5   35<br>
<br>
I want to set lon =135, as 0 km, and lat=34.5 as 0 km.<br>
as we know that 1 deg is about 110 km.<br>
<br>
Is there any function in grads that can directly convert the world coordinat distance to real distance (km)?<br>
<br>
Please, any help would be very appreciate.<br>
<br>
thank you<br>
regards,<br>
wendi<br>
<br>
</div></div>______________________________<wbr>_________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/<wbr>listinfo/gradsusr</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Jeff Duda<br>Post-doctoral research associate<br>University of Oklahoma School of Meteorology<br></div></div></div>
</div>