<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.17095" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=518500319-22032011><FONT face=Arial
color=#0000ff size=2>I use this little routine before calling cbar. It
quickly allows me to set a max and min value .. and increment between.
</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=518500319-22032011><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=518500319-22032011><FONT face=Arial
size=2>---------------- make_clevs.gs-----------------</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=518500319-22032011><FONT face=Arial
size=2></FONT></SPAN> </DIV><SPAN class=518500319-22032011><FONT face=Arial
size=2><SPAN lang=EN>
<DIV dir=ltr align=left>function main(UserInput)</DIV>
<DIV dir=ltr align=left>value = subwrd(UserInput,1)</DIV>
<DIV dir=ltr align=left>maxvalue = subwrd(UserInput,2)</DIV>
<DIV dir=ltr align=left>incvalue = subwrd(UserInput,3)</DIV>
<DIV dir=ltr align=left>mystring = " "</DIV>
<DIV dir=ltr align=left>while (value <= maxvalue)</DIV>
<DIV dir=ltr align=left>mystring = mystring%value</DIV>
<DIV dir=ltr align=left>mystring = mystring%" "</DIV>
<DIV dir=ltr align=left>value = value + incvalue</DIV>
<DIV dir=ltr align=left>endwhile</DIV>
<DIV dir=ltr align=left>'set clevs ' mystring </DIV>
<DIV dir=ltr align=left>return</DIV></SPAN></FONT></SPAN>
<DIV dir=ltr align=left><SPAN class=518500319-22032011><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=518500319-22032011><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=518500319-22032011><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=518500319-22032011><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=518500319-22032011><FONT face=Arial
color=#0000ff size=2>ron</FONT></SPAN></DIV>
<DIV> </DIV><!-- Converted from text/rtf format -->
<P align=left><B><SPAN lang=en-ca><FONT face=Arial>Ron
Goodson</FONT></SPAN></B><SPAN lang=en-us></SPAN><SPAN
lang=en-ca> </SPAN><SPAN lang=en-us></SPAN><SPAN
lang=en-ca> </SPAN><SPAN
lang=en-us></SPAN><SPAN lang=en-ca><BR></SPAN><SPAN lang=en-us></SPAN><SPAN
lang=en-us></SPAN><SPAN lang=en-ca><FONT face=Arial size=2>Prairie and Northern
Meteorological Service of Canada Science Section </FONT></SPAN><SPAN
lang=en-us></SPAN><SPAN lang=en-us></SPAN><SPAN lang=fr-ca> <FONT face=Arial
size=2>Unité des Sciences, Région des Prairies et du Nord, Service
Météorologique du Canada </FONT></SPAN><SPAN
lang=en-us></SPAN><SPAN lang=en-us></SPAN><SPAN lang=fr-ca><BR></SPAN><SPAN
lang=en-us></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-ca><FONT face=Arial
size=2>Environment Canada</FONT></SPAN></P>
<P align=left><SPAN lang=en-ca><FONT face=Arial size=2>Room 200 ; 4999 – 98
Avenue</FONT></SPAN></P>
<P align=left><SPAN lang=en-ca><FONT face=Arial size=2>Edmonton Alberta T6B
2X3 </FONT></SPAN><SPAN
lang=en-us></SPAN><SPAN lang=en-us></SPAN><SPAN lang=fr-ca> <FONT face=Arial
size=2>Environnement Canada</FONT></SPAN></P>
<P align=left><SPAN lang=fr-ca><FONT face=Arial size=2>Pièce 200 ; 4999 – 98
Avenue</FONT></SPAN></P>
<P align=left><SPAN lang=fr-ca><FONT face=Arial size=2>Edmonton Alberta T6B
2X3 </FONT></SPAN><SPAN
lang=en-us></SPAN><SPAN lang=en-us></SPAN><SPAN lang=fr-ca><BR></SPAN><SPAN
lang=en-us></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-ca><FONT face=Arial
size=2>Telephone | Téléphone 780 951
8791 </FONT></SPAN><SPAN lang=en-us></SPAN><SPAN
lang=en-us></SPAN><SPAN lang=en-ca><BR></SPAN><SPAN lang=en-us></SPAN><SPAN
lang=en-us></SPAN><SPAN lang=en-ca><FONT face=Arial size=2>Email |
Courriel
ron.goodson@ec.gc.ca </FONT></SPAN><SPAN
lang=en-us></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-ca><BR></SPAN><SPAN
lang=en-us></SPAN><SPAN lang=en-ca></SPAN></P>
<DIV> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> gradsusr-bounces@gradsusr.org
[mailto:gradsusr-bounces@gradsusr.org] <B>On Behalf Of </B>Jeffrey
Duda<BR><B>Sent:</B> March 22, 2011 12:44 PM<BR><B>To:</B> GrADS Users
Forum<BR><B>Subject:</B> Re: [gradsusr] Setting color bar for
animation<BR></FONT><BR></DIV>
<DIV></DIV>Clay,<BR>Having the color contours remain the same is as simple as
using the 'set clevs ...' and 'set ccols ...' lines before you display each time
slice of data. If that doesn't make sense, show me your code for <A
href="http://ani.gs">ani.gs</A>.<BR><BR>Jeff Duda<BR><BR>
<DIV class=gmail_quote>On Tue, Mar 22, 2011 at 1:39 PM, Clay Blankenship <SPAN
dir=ltr><<A
href="mailto:clay.b.blankenship@nasa.gov">clay.b.blankenship@nasa.gov</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV style="WORD-WRAP: break-word">Can somebody show me an example animation
script that will set the color bar to a consistent range and set of colors?
The ones I have, like <A href="http://ani.gs" target=_blank>ani.gs</A>, will
change how much of the color bar they plot from frame to frame, even if you
specify a range.
<DIV><BR></DIV>
<DIV>Thanks,</DIV>
<DIV>Clay<BR>
<DIV><SPAN
style="WORD-SPACING: 0px; FONT: medium Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate">
<DIV style="WORD-WRAP: break-word"><SPAN
style="WORD-SPACING: 0px; FONT: medium Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate">
<DIV style="WORD-WRAP: break-word"><SPAN
style="WORD-SPACING: 0px; FONT: 12px Monaco; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate">
<DIV style="WORD-WRAP: break-word"><SPAN
style="WORD-SPACING: 0px; FONT: 12px Monaco; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate">
<DIV style="WORD-WRAP: break-word">
<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"
target=_blank>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></DIV></SPAN><BR></DIV></SPAN><BR></DIV></SPAN><BR></DIV><BR></DIV></DIV><BR>_______________________________________________<BR>gradsusr
mailing list<BR><A
href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</A><BR><A
href="http://gradsusr.org/mailman/listinfo/gradsusr"
target=_blank>http://gradsusr.org/mailman/listinfo/gradsusr</A><BR><BR></BLOCKQUOTE></DIV><BR><BR
clear=all><BR>-- <BR>Jeff Duda<BR>Iowa State University<BR>Meteorology Graduate
Student<BR>3134 Agronomy Hall<BR><A
href="http://www.meteor.iastate.edu/~jdduda">www.meteor.iastate.edu/~jdduda</A><BR></BODY></HTML>