<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Hi Grad Users,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Below is my question and work done so far on my problem, please guide me to solve.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><b>Question</b> : How to calculate the strength of ocean current data to provide different colors to different levels using Grads ?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><b>Work Done so far : </b>Ocean current data downloaded from NOAA and below is the ctlinfo from the NetCDF data<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><b>dset D:\OceanData\2014\05\25\rtofs_glo_2ds_f024_daily_prog.nc<o:p></o:p></b></p><p class=MsoNormal><b>title 2D Sfc Daily Prognostic 00Z21may2014: Forecast, downloaded May 25 15:22 UTC<o:p></o:p></b></p><p class=MsoNormal><b>undef 1.26765e+30<o:p></o:p></b></p><p class=MsoNormal><b>dtype netcdf<o:p></o:p></b></p><p class=MsoNormal><b>xdef 720 linear 74.16 0.49998<o:p></o:p></b></p><p class=MsoNormal><b>ydef 360 linear -90 0.49998<o:p></o:p></b></p><p class=MsoNormal><b>zdef 1 linear 1 1<o:p></o:p></b></p><p class=MsoNormal><b>tdef 1 linear 00Z25MAY2014 1mn<o:p></o:p></b></p><p class=MsoNormal><b>vars 2<o:p></o:p></b></p><p class=MsoNormal><b>u_velocity=>u_velocity 1 t,z,y,x eastward_sea_water_velocity (m/s)<o:p></o:p></b></p><p class=MsoNormal><b>v_velocity=>v_velocity 1 t,z,y,x northward_sea_water_velocity (m/s)<o:p></o:p></b></p><p class=MsoNormal><b>endvars<o:p></o:p></b></p><p class=MsoNormal><b><o:p> </o:p></b></p><p class=MsoNormal>Am using below selected commands to generate vectors, and automatically it gives in strength in terms of length of arrow.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><b>sdfopen D:/ OceanData /2014/05/25/rtofs_glo_2ds_f024_daily_prog.nc<o:p></o:p></b></p><p class=MsoNormal><b>d u_velocity.1; v_velocity.1<o:p></o:p></b></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>if I make vector’s scaling fixed to 0.015 using ‘<b>set arrscl 0.15</b>‘. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>So how can I calculate strength of vectors to provide them colors according to levels ?<b><o:p></o:p></b></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><b><span style='color:#215868'>Thanks & Regards<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='color:#215868'>Anil Kumar</span></b><b><span style='color:#00A1DA'><o:p></o:p></span></b></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>