<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi All
<br>
<br>
I am trying to draw the magnitude of moisture flux vectors as shaded contours and I cant seem to get the scripting correct when calculating the magnitude.<br>
Any advice of the error below would be appreciated.<br>
<br>
Error:<br>
Variable: speed<br>
Type: float<br>
Total Size: 7208 bytes<br>
1802 values<br>
Number of Dimensions: 2<br>
Dimensions and sizes: [34] x [53]<br>
Coordinates: <br>
Number Of Attributes: 1<br>
_FillValue : 1e+20<br>
fatal:Coordinate variables must be the same dimension as their dimension<br>
fatal:No coordinate variable exists for dimension (lat) in variable (speed)<br>
fatal:Execute: Error occurred at or near line 123 in file Obs_pr_qflux_qfluxmag.ncl<br>
<br>
<br>
Script:<br>
u_avg = dim_avg_n_Wrap(u1,0) ;<br>
v_avg = dim_avg_n_Wrap(v1,0) ;<br>
<br>
u_avg = u_avg/5<br>
v_avg = v_avg/5<br>
<br>
u = u/5<br>
v = v/5<br>
<br>
speed = sqrt(u_avg({lat|-40:10},{lon|-10:70})^2+v_avg({lat|-40:10}, {lon|-10:70})^2)<br>
<br>
printVarSummary(speed)<br>
<br>
speed!0 = "lat"<br>
speed!1 = "lon"<br>
speed&lat = lat<br>
speed&lon = lon<br>
speed@long_name = "Wind Speed"<br>
speed@units = "m/s"<br>
<br>
<br>
printVarSummary(speed)<br>
<br>
Many thanks!<br>
<br>
Kindest Regards<br>
Melissa<br>
</div>
</body>
</html>