On Wed, Jan 12, 2011 at 5:25 AM, Francesco Benincasa <span dir="ltr"><<a href="mailto:francesco.benincasa@bsc.es">francesco.benincasa@bsc.es</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi all,<br>
<br>
I'm using python grads library to generate maps from netcdf files.<br>
<br>
Now, I generate a colorbar using matplotlib.colors.ListedColormap()<br>
and a colormap using matplotlib.colorbar.ColorbarBase()<br>
<br>
then i generate the map with ga.contourf() function, passing it both the<br>
colormap and colorbar (for passing the colobar I've done a little<br>
modification to galab.py code to override its default colorbar and pass mine).<br>
<br>
The problem is that I want to display the variable in µg/m^3, while it's in<br>
kg/m^3. With the standard grads it was sufficient to do "d<br>
VARNAME*1000000000", but now it seems impossible to do it.<br><br></blockquote><div><br></div><div>You should be able to enter</div><div><br></div><div> ga.contourf("varname*10000000")</div><div><br></div>
<div>What exactly is the problem you are having?</div><div><br></div><div> Arlindo</div><div><br></div><div><br></div></div>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a><br>