<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">OK, I think I am starting to understand, but it's odd that you can do <div>set ccols</div><div>d var</div><div>cbar (resetting clevs/ccols?)</div><div>d var</div><div>cbar</div><div><br></div><div>and after the first 'd var' cbar has the original shading info but not the second time. The ccols/clevs must not be the thing that determines the color bar scale, which is what is throwing me off.</div><div><br></div><div>Anyway, why does the following not work?</div><div><div><br></div><div>If I hard-code dd.gs to 'make_clevs 0 2 .2' I get the color bar from 0 to 2 like I want. If I pass the parameters and do 'dd soilwat5 -cmin 0 -cmax 2 -cint .2', it gets the values (the "say" command prints the expected numbers) but the color bar only goes to 1 (the max data value). Am I putting quotation marks in the right place. I am not sure make_clevs is getting the three values.</div><div><br></div><div>Clay</div><div><br></div><div><br></div><div><br></div><div><br></div><div>function dd (args)</div><div>*Plot a variable and its color scale.</div><div>* dd variable [ -cmin minimum value ]</div><div>* [ -cmax maximum value ]</div><div>* [ -cint color scale ]</div><div><br></div><div>variable=subwrd(args,1)</div><div><br></div><div>cint=''</div><div>cmin=''</div><div>cmax=''</div><div>n=2</div><div><br></div><div>while(n<7)</div><div>idx=subwrd(args,n)</div><div>opt=subwrd(args,n+1)</div><div>if(idx='');break;endif</div><div>if(idx='-cint');cint=opt;endif</div><div>if(idx='-cmin');cmin=opt;endif</div><div>if(idx='-cmax');cmax=opt;endif</div><div>n=n+2</div><div>endwhile</div><div><br></div><div>'c'</div><div>'set gxout shaded'</div><div>say cint</div><div>say cmin</div><div>say cmax</div><div><br></div><div>'make_clevs ' cmin cmax cint</div><div><br></div><div>'d 'variable</div><div><br></div><div><br></div><div>'cbar2'</div></div><div><br></div><div><br></div><div><br></div><div><br><div apple-content-edited="true"> <div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div><div>-- </div><div>Clay Blankenship * USRA Research Scientist</div></div><div><div><div><div><a href="mailto:clay.b.blankenship@nasa.gov">clay.b.blankenship@nasa.gov</a> * 256-961-7638</div></div></div></div><div>320 Sparkman Drive * Huntsville, AL 35805 USA</div></div></div><div>National Space Science and Technology Center at NASA-MSFC/UAH</div><br></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"> </div><br></div></body></html>