<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">What you are talking about are GrADS script functions. <a href="http://iges.org/grads/gadoc/gsf.html">http://iges.org/grads/gadoc/gsf.html</a><div>—Jennifer</div><div><br><div><div>On Oct 30, 2015, at 12:54 PM, Christopher Gilroy &lt;<a href="mailto:chris.gilroy@gmail.com">chris.gilroy@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">So basically instead of having:<div><br></div><div><div>function map(arg)</div><div>if (arg = '')</div><div>&nbsp; &nbsp;pull cmdline</div><div>else</div><div>&nbsp; &nbsp;cmdline=arg</div><div>endif</div><div><br></div><div>map=subwrd(cmdline,1)</div><div><br></div><div>if (map = 'conus')</div><div>&nbsp; latr='18 62'</div><div>&nbsp; lonr='-130 -58'</div><div>endif</div><div><br></div><div>if (map = 'alaska')</div><div>&nbsp; latr='50 74'</div><div>&nbsp; lonr='-170 -135'</div><div>endif</div><div><br></div><div>if (map = 'test')</div><div>&nbsp; latr='48 56'</div><div>&nbsp; lonr='-85 -63'</div><div>endif</div><div><br></div><div>if (map = 'blah')</div><div>&nbsp; latr='62 70'</div><div>&nbsp; lonr='-162 -150'</div><div>endif</div><div><br></div><div>'open /gfsmodeldata/gfs.ctl'</div><div>'set dfile 1'</div><div><br></div><div>'set mproj latlon'</div><div>'set display color white'<br></div><div>'set csmooth on'</div><div>'set grid off'</div><div>'set grads off'</div><div>'set mpdset hires'</div><div>'set map auto'</div><div>'set line 1'</div><div>'set csmooth on'</div><div>'set grads off'</div><div>'set gxout shaded'</div><div>*PAGE SIZE</div><div>'set vpage 0.0 11.0 0.0 8.5'</div><div>*PLOT SIZE</div><div>'set parea 0.4 10.3 0.4 7.9'</div><div><br></div><div>at the top of all of our gfs scripts, we can put that into a "<a href="http://gfs_master.gs/">gfs_master.gs</a>" and just "include" that in at the very top of all of our gfs scripts? This way as we add more "defaults" to the configuration we just edit one file instead of every single script?</div>
</div></div>
_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>http://gradsusr.org/mailman/listinfo/gradsusr<br></blockquote></div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>--</div><div>Jennifer M. Adams<br>Center for Ocean-Land-Atmosphere Studies (COLA)<br>111 Research Hall, Mail Stop 2B3<br>George Mason University<br>4400 University Drive<br>Fairfax, VA 22030&nbsp;<br><br></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span><br class="Apple-interchange-newline">
</div>
<br></div></body></html>