<div>Thank you José,</div>
<div>&nbsp;</div>
<div>It indeed work this time!</div>
<div>Even using the say command I could see that the lat-lon were in the wrong order!</div>
<div>&nbsp;Thanks.</div>
<div>&nbsp;</div>
<div>Eduardo.</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div><br><br>&nbsp;</div>
<div><span class="gmail_quote">2008/3/27, Jose Fernando Pesquero &lt;<a href="mailto:pesquero@cptec.inpe.br">pesquero@cptec.inpe.br</a>&gt;:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Eduardo,<br><br>You are using wrong values to the subwrd index.<br><br>nx0 = subwrd(result,1)<br>ny0 = subwrd(result,2)<br>
<br>Try it<br><br>nx0 = subwrd(result,3)<br>ny0 = subwrd(result,6)<br><br>use the command<br><br>say result<br><br>after any query command, to see better, the returns of this command<br><br>You´ll need to change nx1,ny1 in the same way.<br>
<br>Regards<br><br>Pesquero<br>&gt; Hello Dear Grads&#39; Users<br>&gt;<br>&gt; I am trying to draw a rectangle doing as follows:<br>&gt;<br>&gt; &#39;set gxout contour&#39;<br>&gt; &#39;set cthick 20&#39;<br>&gt; &#39;set cint 5.0&#39;<br>
&gt; &#39;set ccolor 1&#39;<br>&gt; &#39;d hgtcom-hgtc&#39;<br>&gt;<br>&gt; x0=-65<br>&gt; y0=-28<br>&gt; x1=-70<br>&gt; y1=-38<br>&gt; &#39;q w2xy &#39;x0&#39; &#39;y0<br>&gt; nx0 = subwrd(result,1)<br>&gt; ny0 = subwrd(result,2)<br>
&gt; &#39;q w2xy &#39;x1&#39; &#39;y1<br>&gt; nx1 = subwrd(result,1)<br>&gt; ny1 = subwrd(result,2)<br>&gt;<br>&gt; &#39;draw rec &#39;nx0&#39; &#39;ny0&#39; &#39;nx1&#39; &#39;ny1<br>&gt;<br>&gt; But it doesn&#39;t work!<br>
&gt; What&#39;s wrong?<br>&gt;<br>&gt; Thanks in advance.<br>&gt;<br>&gt; Eduardo.<br>&gt;<br>&gt;<br></blockquote></div>