<div dir="ltr"><div><div><div>Daniel,<br></div>You can color the vectors by adding a third argument to the display command. <br><br></div>'d skip(u.1,25);skip(v.2,25);mag(u.1,v.1)'<br><br></div>For example, this would color the vectors according to the magnitude of the wind. You can use any field you want, though.<br>
<br>Jeff Duda<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 12, 2014 at 11:12 PM, Daniel Mercado Betín <span dir="ltr"><<a href="mailto:damebet@gmail.com" target="_blank">damebet@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi GrADS users, </div><div><br></div>When I run my script:<div><br></div><div><div>reinit</div><div>
'c'</div><div>'set display color white'<br></div><div>'set grid off'</div><div>
'set grads off'</div><div>'sdfopen U1.nc'</div><div>'sdfopen V1.nc'</div><div>'set mpdset hires'</div><div>'set lat -40 30'</div><div>'set lon 270 360'</div><div>'set gxout vector'</div>
<div>'d skip(u.1, 25);skip(v.2, 25)'</div><div><br></div><div>I get the attached figure, but I need it with colors. How can I do this?</div><div><br></div><div>Thank you</div><span class="HOEnZb"><font color="#888888"><div>
<div>-- <br><div dir="ltr"><div>Daniel Mercado Betín</div>
<div>Environmental Engineering</div><div><br></div><div><br></div></div>
</div></div></font></span></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>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>Center for Analysis and Prediction of Storms<br>
</div>