<div>Mac,</div>
<div> </div>
<div>I think the proper syntax in the script would be something along the lines of </div>
<div> </div>
<div>'run cbarn 1 0 6.0 0.65 '<br><br>I don't know if it makes a difference, but is the cbarn skip called "cbarn" or "<a href="http://cbarn.gs">cbarn.gs</a>"? If it's called <a href="http://cbarn.gs">
cbarn.gs</a>, then you'll likely need to include the ".gs" when you call the script.</div>
<div> </div>
<div>HTH,</div>
<div>Dan<br> </div>
<div><span class="gmail_quote">On 10/18/07, <b class="gmail_sendername">mmacleod</b> <<a href="mailto:mmacleod@scotiaweather.com">mmacleod@scotiaweather.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Good morning All.<br><br>I have a recurring problem with both GrADS version 1.8.11 on Windows XP<br>and on
1.9.4b on Red Hat E4.1 Linux version.<br><br>When I plot a 2-D map and use the <a href="http://cbarn.gs">cbarn.gs</a> or the user function hilo the<br>draw instructions seems to loose the x position on the page and shifts
<br>even line to the left margin. See attached maps<br>"NAM_NovaS_LowLvlMoistConv-WindsH03-Cor.png" which contains the plot<br>without cbarn being executed within the script script section below:<br><br>------ Script lines ----------
<br>'set font 0'<br>'set strsiz 0.20 0.20'<br>'draw string 3.5 8.20 Scotia Weather Services Inc'<br>'set strsiz 0.12 0.12'<br>'draw string 0.35 7.95 NWS NAM Model 0-30 mb Horizontal Moisture
<br>Divergence and 0-30 mb AGL WInd Direction and Speed'<br>'set strsiz 0.15 0.15'<br>'set strsiz 0.12 0.12'<br><br><br>if(xx > 9)<br><br>* This inserts the valid model output date and time for the current time
<br> 'draw string 2.5 0.15 ' xx ' Hr Prog valid at ' time1 ' - ' time3 ' -<br>' time2 ' - ' time4<br> 'set strsiz 0.1 0.1'<br> 'draw string 1.95 0.5 ___ 0-30 mb Horizontal Moisture Divergence (E
<br>-06 kg/kg/s) amd 0-30 mb wind barbs '<br><br>* This displays the valid date and time of the model run so one does<br>not get confused when several model runs are available.<br><br> 'set strsiz 0.09 0.09'
<br> 'draw string 0.25 0.40 Model run from '<br> 'draw string 0.25 0.25 ' timea '-' timeb '-' timec '-' timed ' '<br> 'draw rec .20 .20 1.75 0.55 '<br><br>'set gxout contour'
<br>'cbarn 1 0 6.0 0.75 '<br><br><br>'printim ' fileset xx '.png x1000 y800 '<br><br>else<br><br><br>* This inserts the valid model output date and time for the current time<br> 'draw string
2.5 0.15 0' xx ' Hr Prog valid at ' time1 ' - ' time3 '<br>- ' time2 ' - ' time4<br> 'set strsiz 0.1 0.1'<br> 'draw string 1.95 0.4 ___ 0-30 mb Horizontal Moisture Divergence (E
<br>-06 kg/kg/s) amd 0-30 mb wind barbs '<br><br>* This displays the valid date and time of the model run so one does<br>not get confused when several model runs are available.<br><br> 'set strsiz 0.09 0.09'
<br> 'draw string 0.25 0.40 Model run from '<br> 'draw string 0.25 0.25 ' timea '-' timeb '-' timec '-' timed ' '<br> 'draw rec .20 .20 1.75 0.55 '<br>'set gxout contour'
<br>'cbarn 1 0 6.0 0.65 '<br><br>'printim ' fileset '0' xx '.png x1000 y800 '<br>endif<br><br>----- End of Script Lines ------<br><br>Once cbarn is run and until I reinitialize GrADS, all script runs will
<br>then move the draw lines tight to the left margin as shown in the<br>attached map "NAM_NovaS_LowLvlMoistConv-WindsH03.png"<br><br>Even if I run a scrip that does not have the "run cbarn " line in it,
<br>the draw statements place the margins tight to the left margin.<br><br>The same thing occurs with the use of the hilo user function for the<br>placement of high and low centres on the MSL maps.<br><br>It appears to be a memory location has a setting changed by cbarn or
<br>hilo that then overrides the x setting of draw.<br><br>You help to correct this problem is much appreciated.<br><br>Sincerely<br><br>Mac MacLeod<br><br>--<br>M.A. (Mac) MacLeod<br>President and General Manager<br>Scotia Weather Services Inc
<br>192 Wyse Road, Suite 8,<br>Dartmouth, N.S. B3A 1M9<br><br>Tele: 902-468-3866<br>Fax: 902-461-1768<br>E-mail: <a href="mailto:mmacleod@scotiaweather.com">mmacleod@scotiaweather.com</a><br>Visit us: <a href="http://www.scotiaweather.com">
www.scotiaweather.com</a><br><br><br></blockquote></div><br>