<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">OK, that make_clevs works for me when I do a simple 'd' on my variable, but when I try to use a little fancier script (not even an animation, just trying to pass the range on the command line), I lose the min and max values. <div><br></div><div>If I do:</div><div><br></div><div>c</div><div>make_clevs 0 2 0.2</div><div>d soilwat5</div><div>cbar</div><div><br></div><div>I get a colorbar from 0 to 2 in steps of .2, even though the variable range is 0 to 1 (so far, so good).</div><div><br></div><div>If I do:</div><div> </div><div>dd soilwat5 -cmin 0 -cmax 2 -cint 0.2</div><div><br></div><div>I get a colorbar from 0 to 1 in steps of 0.2. The colors are the same for the different ranges, it just doesn't show the ones above 1. Is this because clevs are set and ccols are not? I was hoping ccols would get set automatically like it does when you don't specify levels.</div><div><br></div><div>This happens whether or not I use the make_clevs line in the following script.</div><div><br></div><div>BTW, this seems really basic, but I can't figure out how to see the current values of ccols and clevs.</div><div>cbar is getting its ccols and clevs from 'q shades', but it doesn't react to ccols and clevs until a plot has been made.</div><div><br></div><div>Script follows.</div><div><br></div><div>Thanks for the help,</div><div>Clay</div><div><br></div><div><div>**************BEGIN dd.gs **************************</div><div><div>function main (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>ccint=''</div><div>ccmin=''</div><div>ccmax=''</div><div>string=''</div><div>space=' '</div><div>n=2</div><div><br></div><div>while(n<9)</div><div>idx=subwrd(args,n)</div><div>opt=subwrd(args,n+1)</div><div>if(idx='');break;endif</div><div>if(idx='-cint');ccint=opt;endif</div><div>if(idx='-cmin');ccmin=opt;endif</div><div>if(idx='-cmax');ccmax=opt;endif</div><div>if(idx='-string');string=opt;endif</div><div>n=n+2</div><div>endwhile</div><div><br></div><div>'c'</div><div>'set gxout shaded'</div><div>if(ccint!=''); 'set cint 'ccint;endif</div><div>if(ccmin!=''); 'set cmin 'ccmin;endif</div><div>if(ccmax!=''); 'set cmax 'ccmax;endif</div><div>if(ccmin!=''); if(ccmax!=''); 'set rbrange 'ccmin ' 'ccmax; endif;endif</div><div>'d 'variable</div><div><br></div><div>*CBB 3/22/11 set the levels</div><div>'make_clevs ' cmin cmax cint</div><div><br></div><div>'cbar'</div><div><br></div><div>return</div></div><div><div>**************END dd.gs **************************</div><div></div></div><div><br></div><div><br></div><div><br></div><div><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></div></body></html>