<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
hi Steve,<br>
<br>
now I understand... you'll have to do the clipping by hand using:<br>
<br>
'draw recf xlo xhi ylo yhi'<br>
<br>
which fills in a rectangle set by xlo .. to the current 'line' color<br>
<br>
here's an example of clipping to a block from x=2.0 to 6.0 and y =
3.0 to 6.0<br>
<br>
first display something:<br>
<br>
'd psl*0.01'<br>
<br>
then get the dimensions of the plotting area<br>
<br>
'q gxinfo'<br>
<br>
Last Graphic = Contour<br>
Page Size = 11 by 8.5<br>
X Limits = 0.5 to 10.5<br>
Y Limits = 1.25 to 7.25<br>
Xaxis = Lon Yaxis = Lat<br>
Mproj = 2<br>
<br>
then:<br>
<br>
'draw recf 0.5 10.5 1.25 3.0' # xlo for plot is 0.5 and xhi is 10.5<br>
'draw recf 6.0 3.00 10.5 7.25' # ylo for plot is 1.25 and xhi is
7.25 -- this is the default parea<br>
'draw recf 0.5 3.00 2.00 7.25'<br>
'draw recf 2.0 6.00 6.00 7.25'<br>
<br>
# -- draw a box<br>
'set line 1 0<br>
'draw rec 2.0 3.0 6.0 6.0'<br>
<br>
here's the plot (ecmwf sea level pressure for 2017052800 analysis --
note the tropical cyclone in the Bay of Bengal (02B)):<br>
<br>
<img src="cid:part1.B6FED6BD.88F4D0A4@noaa.gov" alt=""><br>
<br>
hope this helps...<br>
<br>
best /R Mike<br>
<br>
<div class="moz-cite-prefix">On 5/25/17 3:32 PM, Stephen McMillan
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CA+exxN1t1ZjkXspRcRzS_u8cbx1Uoksi4SQgCJWqmDMfdkZhUg@mail.gmail.com">
<div dir="ltr">Mike,
<div><br>
</div>
<div>Thanks for the response, but I don't think you understood
what I'm trying to accomplish. </div>
<div><br>
</div>
<div>Imagine you've displayed a variable, using the default plot
area, and it displays across most of North America. Now,
let's say you want to display the same variable, but only
including part of the western US, indicated by the dashed
rectangle in attached image. What I want to do is display the
zoomed-in area but fill the screen to the default plot area,
not just that part of the screen.</div>
<div><br>
</div>
<div>If I use 'set parea...' as you suggest, e.g., 'set parea
2.07 3.44 5.35 6.11' I then get the third image shown. It
displays the entirety of the original plot, not the zoomed-in
area.</div>
<div><br>
</div>
<div>I've tried using 'set clip...' with a draw command, but no
luck. Could you send a simple code example to illustrate? I
have yet to see how it's used--the Doc Index doesn't help in
that regard.</div>
<div><br>
</div>
<div>Steve Mc</div>
<div><br>
</div>
<div><img src="cid:part2.6329FAFD.939CD456@noaa.gov" alt="Inline
image 1" class="" height="345" width="498"><br>
</div>
<div><br>
</div>
<div><img src="cid:part3.2FB26A1D.42B92C8A@noaa.gov" alt="Inline
image 2" class="" height="201" width="286"><br>
</div>
<div><br>
</div>
<div><img src="cid:part4.DF94A77D.0C7A6BCD@noaa.gov" alt="Inline
image 3" class="" height="345" width="498"><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, May 24, 2017 at 5:52 PM, Mike
Fiorino - NOAA Federal <span dir="ltr"><<a
href="mailto:michael.fiorino@noaa.gov" target="_blank"
moz-do-not-send="true">michael.fiorino@noaa.gov</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> hi Steve,<br>
<br>
I only use 'set clip' for 'draw' commands and it does
work, but apparently not for 'display' (took a quick look
at the source code and it wasn't obvious why it wouldn't
for 'display' except that 'set clip' works at the very low
level plot commands)<br>
<br>
have you tried the 'parea' command? this sets the plot
area, e.g.,<br>
<br>
'set parea 1 6 3 7'<br>
'd air'<br>
<br>
note that the labels are outside the parea...<br>
<br>
best /R Mike
<div>
<div class="h5"><br>
<br>
<div class="m_8977120143116834872moz-cite-prefix">On
5/24/17 7:36 PM, Stephen McMillan wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="h5">
<div dir="ltr">Is the 'set clip' command disabled in
GrADS? I can't get it to work per the
Documentation Index instructions. A search of the
User Forum yields no help, but one entry does
suggest that it may indeed be disabled without
modifying the code.
<div><br>
</div>
<div>For example (file open with variable "air"):</div>
<div><br>
</div>
<div>'set clip 1 6 3 7'</div>
<div>'d air'</div>
<div><br>
</div>
<div>Result is a map displayed to the default plot
area, not to the "clip" area. I would normally
use 'set mpvals' but cannot get that to work the
way I want it, either.</div>
<div><br>
</div>
<div> I am using v2,1,a2,iga,1 on a Windows 10
PC. I also cannot get it to work using
v2.0.2.oga.2 on a Linux.</div>
<div><br>
</div>
<div>I don't need suggestions on how to crop
images outside GrADS. I know how to do that.</div>
<div><br>
</div>
<div>Stephen McMillan</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
<fieldset
class="m_8977120143116834872mimeAttachmentHeader"></fieldset>
<br>
</div>
</div>
<pre>______________________________<wbr>_________________
gradsusr mailing list
<a class="m_8977120143116834872moz-txt-link-abbreviated" href="mailto:gradsusr@gradsusr.org" target="_blank" moz-do-not-send="true">gradsusr@gradsusr.org</a>
<a class="m_8977120143116834872moz-txt-link-freetext" href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank" moz-do-not-send="true">http://gradsusr.org/mailman/<wbr>listinfo/gradsusr</a>
</pre>
</blockquote>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>